From 83d94ac9ccfd015d4eb6b8683080321b46be3b2e Mon Sep 17 00:00:00 2001 From: jpvignolo Date: Mon, 17 Apr 2017 17:02:32 +0200 Subject: [PATCH] Added definitions of pointer event options (#15476) --- types/iscroll/index.d.ts | 7 ++++++- types/iscroll/iscroll-tests.ts | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/types/iscroll/index.d.ts b/types/iscroll/index.d.ts index cfe1824643..d19dc142a8 100644 --- a/types/iscroll/index.d.ts +++ b/types/iscroll/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for iScroll 5.0 +// Type definitions for iScroll 5.2 // Project: http://cubiq.org/iscroll-5-ready-for-beta-test // Definitions by: Christiaan Rakowski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -68,6 +68,11 @@ interface IScrollOptions { // iScroll probe edition probeType?: number; + + // Pointer events + disableMouse?: boolean; + disablePointer?: boolean; + disableTouch?: boolean; } declare class IScroll { diff --git a/types/iscroll/iscroll-tests.ts b/types/iscroll/iscroll-tests.ts index 3e19397d0f..7bb8604937 100644 --- a/types/iscroll/iscroll-tests.ts +++ b/types/iscroll/iscroll-tests.ts @@ -39,3 +39,5 @@ var myScroll12 = new IScroll(document.getElementById('wrapper'), { preventDefaul var myScroll13 = new IScroll(document.getElementById('wrapper'), { bounceEasing: 'circular' }); var myScroll14 = new IScroll(document.getElementById('wrapper'), { bounceEasing: { style: 'cubic-bezier(0,0,1,1)', fn: function (k) { return k; } } }); + +var myScroll15 = new IScroll('#wrapper', { disableMouse: true, disablePointer: true });