UNPKG

628 BTypeScriptView Raw
1import { IScrollState, IScrollerDistance } from '../../models';
2export declare class ScrollState implements IScrollState {
3 lastScrollPosition: number;
4 lastTotalToScroll: number;
5 totalToScroll: number;
6 triggered: IScrollerDistance;
7 constructor(attrs: Partial<ScrollState>);
8 updateScrollPosition(position: number): number;
9 updateTotalToScroll(totalToScroll: number): void;
10 updateScroll(scrolledUntilNow: number, totalToScroll: number): void;
11 updateTriggeredFlag(scroll: number, isScrollingDown: boolean): void;
12 isTriggeredScroll(totalToScroll: number, isScrollingDown: boolean): boolean;
13}