3 * Copyright Google Inc. All Rights Reserved.
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
8 /* tslint:disable:array-type member-access variable-name typedef
9 only-arrow-functions directive-class-suffix component-class-suffix
11 import {OverlayRef} from '../overlay-ref';
14 * Describes a strategy that will be used by an overlay
15 * to handle scroll events while it is open.
17 export abstract class ScrollStrategy {
20 attach: (overlayRef: OverlayRef) => void;
24 * Returns an error to be thrown when attempting to attach an already-attached
27 export function getMdScrollStrategyAlreadyAttachedError(): Error {
28 return Error(`Scroll strategy has already been attached.`);