Skip to content

Commit 62c6f39

Browse files
committed
added some new options, needs verification
1 parent 9324014 commit 62c6f39

File tree

2 files changed

+41
-6
lines changed

2 files changed

+41
-6
lines changed

iscroll/iscroll-5-lite.d.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@
44
// Definitions: https://github.com/borisyankov/DefinitelyTyped
55

66
interface IScrollOptions {
7-
hScroll?: boolean;
8-
vScroll?: boolean;
7+
//hScroll?: boolean;
8+
//vScroll?: boolean;
9+
10+
scrollX?: boolean;
11+
scrollY?: boolean;
12+
913
x?: number;
1014
y?: number;
1115
bounce?: boolean;
1216
bounceLock?: boolean;
1317
momentum?: boolean;
1418
lockDirection?: boolean;
1519
useTransform?: boolean;
16-
useTransition?: boolean;
20+
useTransition?: boolean;
1721
}
1822

1923
declare class iScroll {

iscroll/iscroll-5.d.ts

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// Definitions: https://github.com/borisyankov/DefinitelyTyped
55

66
interface IScrollOptions {
7-
hScroll?: boolean;
8-
vScroll?: boolean;
7+
//hScroll?: boolean;
8+
//vScroll?: boolean;
99
x?: number;
1010
y?: number;
1111
bounce?: boolean;
@@ -33,9 +33,40 @@ interface IScrollOptions {
3333
doubleTapZoom?: number;
3434
wheelAction?: string;
3535

36-
// Snap
36+
37+
///String or boolean
3738
snap?: any;
3839
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;
3970
}
4071

4172
declare class IScroll {

0 commit comments

Comments
 (0)