You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
971 B
27 lines
971 B
/**
|
|
* @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;
|
|
}
|