ngx-infinite-scroll
Version:
[](https://travis-ci.org/orizens/ngx-infinite-scroll) [](#backers) [![Sponso
14 lines (13 loc) • 1.19 kB
TypeScript
import { IPositionStats, IScrollState, IScrollerDistance } from '../../models';
export declare function shouldFireScrollEvent(container: IPositionStats, distance: IScrollerDistance | undefined, scrollingDown: boolean): boolean;
export declare function isScrollingDownwards(lastScrollPosition: number, container: IPositionStats): boolean;
export declare function getScrollStats(lastScrollPosition: number, container: IPositionStats, distance: IScrollerDistance): {
fire: boolean;
scrollDown: boolean;
};
export declare function updateScrollPosition(position: number, scrollState: IScrollState): number;
export declare function updateTotalToScroll(totalToScroll: number, scrollState: IScrollState): void;
export declare function isSameTotalToScroll(scrollState: IScrollState): boolean;
export declare function updateTriggeredFlag(scroll: number, scrollState: IScrollState, triggered: boolean, isScrollingDown: boolean): void;
export declare function isTriggeredScroll(totalToScroll: number, scrollState: IScrollState, isScrollingDown: boolean): boolean;
export declare function updateScrollState(scrollState: IScrollState, scrolledUntilNow: number, totalToScroll: number): void;