UNPKG

1.19 kBTypeScriptView Raw
1import { IPositionStats, IScrollState, IScrollerDistance } from '../../models';
2export declare function shouldFireScrollEvent(container: IPositionStats, distance: IScrollerDistance | undefined, scrollingDown: boolean): boolean;
3export declare function isScrollingDownwards(lastScrollPosition: number, container: IPositionStats): boolean;
4export declare function getScrollStats(lastScrollPosition: number, container: IPositionStats, distance: IScrollerDistance): {
5 fire: boolean;
6 scrollDown: boolean;
7};
8export declare function updateScrollPosition(position: number, scrollState: IScrollState): number;
9export declare function updateTotalToScroll(totalToScroll: number, scrollState: IScrollState): void;
10export declare function isSameTotalToScroll(scrollState: IScrollState): boolean;
11export declare function updateTriggeredFlag(scroll: number, scrollState: IScrollState, triggered: boolean, isScrollingDown: boolean): void;
12export declare function isTriggeredScroll(totalToScroll: number, scrollState: IScrollState, isScrollingDown: boolean): boolean;
13export declare function updateScrollState(scrollState: IScrollState, scrolledUntilNow: number, totalToScroll: number): void;