UNPKG

751 BTypeScriptView Raw
1/**
2 * AutoScroll simply hooks up mouse events given a parent element, and scrolls the container
3 * up/down depending on how close the mouse is to the top/bottom of the container.
4 *
5 * Once you don't want autoscroll any more, just dispose the helper and it will unhook events.
6 *
7 * @public
8 * {@docCategory AutoScroll}
9 */
10export declare class AutoScroll {
11 private _events;
12 private _scrollableParent;
13 private _scrollRect;
14 private _scrollVelocity;
15 private _isVerticalScroll;
16 private _timeoutId;
17 constructor(element: HTMLElement);
18 dispose(): void;
19 private _onMouseMove;
20 private _onTouchMove;
21 private _computeScrollVelocity;
22 private _startScroll;
23 private _incrementScroll;
24 private _stopScroll;
25}