Added definitions of pointer event options (#15476)

This commit is contained in:
jpvignolo 2017-04-17 17:02:32 +02:00 committed by Andy
parent fb8759df97
commit 83d94ac9cc
2 changed files with 8 additions and 1 deletions

View File

@ -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 <https://github.com/csrakowski/>
// 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 {

View File

@ -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 });