unidragger
Advanced tools
Comparing version 2.2.0 to 2.2.1
{ | ||
"name": "unidragger", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Base draggable class", | ||
@@ -5,0 +5,0 @@ "main": "unidragger.js", |
/*! | ||
* Unidragger v2.2.0 | ||
* Unidragger v2.2.1 | ||
* Draggable base class | ||
@@ -38,6 +38,2 @@ * MIT license | ||
// ----- ----- // | ||
function noop() {} | ||
// -------------------------- Unidragger -------------------------- // | ||
@@ -60,3 +56,2 @@ | ||
var navigator = window.navigator; | ||
/** | ||
@@ -69,4 +64,2 @@ * works as unbinder, as you can .bindHandles( false ) to unbind | ||
isBind = isBind === undefined ? true : !!isBind; | ||
// disable scrolling via touch | ||
var touchActionValue = isBind ? 'none' : ''; | ||
// bind each handle | ||
@@ -77,3 +70,2 @@ var bindMethod = isBind ? 'addEventListener' : 'removeEventListener'; | ||
this._bindStartEvent( handle, isBind ); | ||
handle.style.touchAction = touchActionValue; | ||
handle[ bindMethod ]( 'click', this ); | ||
@@ -80,0 +72,0 @@ } |
9073
245