UNPKG

@catull/igniteui-angular

Version:

Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps

27 lines (26 loc) 844 B
import { IgxOverlayService } from '../overlay'; import { ScrollStrategy } from './scroll-strategy'; /** * Uses a tolerance and closes the shown component upon scrolling if the tolerance is exceeded */ export declare class CloseScrollStrategy extends ScrollStrategy { private _document; private _overlayService; private _id; private initialScrollTop; private initialScrollLeft; private cumulativeScrollTop; private cumulativeScrollLeft; private _threshold; private _initialized; private _sourceElement; private _scrollContainer; constructor(scrollContainer?: HTMLElement); /** @inheritdoc */ initialize(document: Document, overlayService: IgxOverlayService, id: string): void; /** @inheritdoc */ attach(): void; /** @inheritdoc */ detach(): void; private onScroll; }