From 62c6f39a5ac2d57fda00b9145530492952365024 Mon Sep 17 00:00:00 2001 From: Christiaan Rakowski Date: Tue, 10 Dec 2013 14:10:19 +0100 Subject: [PATCH] added some new options, needs verification --- iscroll/iscroll-5-lite.d.ts | 10 +++++++--- iscroll/iscroll-5.d.ts | 37 ++++++++++++++++++++++++++++++++++--- 2 files changed, 41 insertions(+), 6 deletions(-) diff --git a/iscroll/iscroll-5-lite.d.ts b/iscroll/iscroll-5-lite.d.ts index 5324aecba..2aef0ce39 100644 --- a/iscroll/iscroll-5-lite.d.ts +++ b/iscroll/iscroll-5-lite.d.ts @@ -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 { diff --git a/iscroll/iscroll-5.d.ts b/iscroll/iscroll-5.d.ts index ded858ecb..abd793027 100644 --- a/iscroll/iscroll-5.d.ts +++ b/iscroll/iscroll-5.d.ts @@ -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 {