mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
added some new options, needs verification
This commit is contained in:
Vendored
+7
-3
@@ -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 {
|
||||
|
||||
Vendored
+34
-3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user