1 | declare class ReactWheelHandler {
|
2 | /**
|
3 | * onWheel is the callback that will be called with right frame rate if
|
4 | * any wheel events happened
|
5 | * onWheel should is to be called with two arguments: deltaX and deltaY in
|
6 | * this order
|
7 | */
|
8 | constructor(
|
9 | // eslint-disable-next-line @typescript-eslint/ban-types
|
10 | onWheel: Function,
|
11 | // eslint-disable-next-line @typescript-eslint/ban-types
|
12 | handleScrollX: boolean | Function,
|
13 | // eslint-disable-next-line @typescript-eslint/ban-types
|
14 | handleScrollY: boolean | Function,
|
15 | // eslint-disable-next-line @typescript-eslint/ban-types
|
16 | stopPropagation?: boolean | Function,
|
17 | );
|
18 |
|
19 | onWheel(event: any): void;
|
20 |
|
21 | _didWheel(): void;
|
22 | }
|
23 |
|
24 | declare namespace ReactWheelHandler {}
|
25 | export = ReactWheelHandler;
|