blob: e54d3cef43a621b8223a8139989a70052f36b384 [file] [log] [blame]
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { ScrollStrategy } from './scroll-strategy';
import { ViewportRuler } from '@angular/cdk/scrolling';
/**
* Strategy that will prevent the user from scrolling while the overlay is visible.
*/
export declare class BlockScrollStrategy implements ScrollStrategy {
private _viewportRuler;
private _previousHTMLStyles;
private _previousScrollPosition;
private _isEnabled;
private _document;
constructor(_viewportRuler: ViewportRuler, document: any);
/** Attaches this scroll strategy to an overlay. */
attach(): void;
/** Blocks page-level scroll while the attached overlay is open. */
enable(): void;
/** Unblocks page-level scroll while the attached overlay is open. */
disable(): void;
private _canBeEnabled;
}