File tree Expand file tree Collapse file tree 2 files changed +41
-6
lines changed Expand file tree Collapse file tree 2 files changed +41
-6
lines changed Original file line number Diff line number Diff line change 4
4
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5
5
6
6
interface IScrollOptions {
7
- hScroll ?: boolean ;
8
- vScroll ?: boolean ;
7
+ //hScroll?: boolean;
8
+ //vScroll?: boolean;
9
+
10
+ scrollX ?: boolean ;
11
+ scrollY ?: boolean ;
12
+
9
13
x ?: number ;
10
14
y ?: number ;
11
15
bounce ?: boolean ;
12
16
bounceLock ?: boolean ;
13
17
momentum ?: boolean ;
14
18
lockDirection ?: boolean ;
15
19
useTransform ?: boolean ;
16
- useTransition ?: boolean ;
20
+ useTransition ?: boolean ;
17
21
}
18
22
19
23
declare class iScroll {
Original file line number Diff line number Diff line change 4
4
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5
5
6
6
interface IScrollOptions {
7
- hScroll ?: boolean ;
8
- vScroll ?: boolean ;
7
+ // hScroll?: boolean;
8
+ // vScroll?: boolean;
9
9
x ?: number ;
10
10
y ?: number ;
11
11
bounce ?: boolean ;
@@ -33,9 +33,40 @@ interface IScrollOptions {
33
33
doubleTapZoom ?: number ;
34
34
wheelAction ?: string ;
35
35
36
- // Snap
36
+
37
+ ///String or boolean
37
38
snap ?: any ;
38
39
snapThreshold ?: number ;
40
+
41
+ //new in IScroll 5?
42
+
43
+ resizeIndicator ?: boolean ;
44
+ mouseWheelSpeed ?: number ;
45
+ startX ?: number ;
46
+ startY ?: number ;
47
+ scrollX ?: boolean ;
48
+ scrollY ?: boolean ;
49
+ directionLockThreshold ?: number ;
50
+
51
+ bounceTime ?: number ;
52
+
53
+ ///String or function
54
+ bounceEasing ?: any ;
55
+
56
+ preventDefault ?: boolean ;
57
+ preventDefaultException ?: boolean ;
58
+
59
+ HWCompositing ?: boolean ;
60
+
61
+ freeScroll ?: boolean ;
62
+
63
+ resizePolling ?: number ;
64
+ tap ?: boolean ;
65
+ click ?: boolean ;
66
+ invertWheelDirection ?: boolean ;
67
+
68
+ ///Boolean or string
69
+ eventPassthrough ?: any ;
39
70
}
40
71
41
72
declare class IScroll {
You can’t perform that action at this time.
0 commit comments