mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Added definitions of pointer event options (#15476)
This commit is contained in:
parent
fb8759df97
commit
83d94ac9cc
7
types/iscroll/index.d.ts
vendored
7
types/iscroll/index.d.ts
vendored
@ -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 {
|
||||
|
||||
@ -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 });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user