added some new options, needs verification

This commit is contained in:
Christiaan Rakowski
2013-12-10 14:10:19 +01:00
parent 93240145a8
commit 62c6f39a5a
2 changed files with 41 additions and 6 deletions
+7 -3
View File
@@ -4,8 +4,12 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface IScrollOptions {
hScroll?: boolean;
vScroll?: boolean;
//hScroll?: boolean;
//vScroll?: boolean;
scrollX?: boolean;
scrollY?: boolean;
x?: number;
y?: number;
bounce?: boolean;
@@ -13,7 +17,7 @@ interface IScrollOptions {
momentum?: boolean;
lockDirection?: boolean;
useTransform?: boolean;
useTransition?: boolean;
useTransition?: boolean;
}
declare class iScroll {
+34 -3
View File
@@ -4,8 +4,8 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface IScrollOptions {
hScroll?: boolean;
vScroll?: boolean;
//hScroll?: boolean;
//vScroll?: boolean;
x?: number;
y?: number;
bounce?: boolean;
@@ -33,9 +33,40 @@ interface IScrollOptions {
doubleTapZoom?: number;
wheelAction?: string;
// Snap
///String or boolean
snap?: any;
snapThreshold?: number;
//new in IScroll 5?
resizeIndicator?: boolean;
mouseWheelSpeed?: number;
startX?: number;
startY?: number;
scrollX?: boolean;
scrollY?: boolean;
directionLockThreshold?: number;
bounceTime?: number;
///String or function
bounceEasing?: any;
preventDefault?: boolean;
preventDefaultException?: boolean;
HWCompositing?: boolean;
freeScroll?: boolean;
resizePolling?: number;
tap?: boolean;
click?: boolean;
invertWheelDirection?: boolean;
///Boolean or string
eventPassthrough?: any;
}
declare class IScroll {