|
|
|
@ -26,16 +26,6 @@
|
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var supportsPassive = false; |
|
|
|
|
try { |
|
|
|
|
var opts = Object.defineProperty({}, 'passive', { |
|
|
|
|
get: function() { |
|
|
|
|
supportsPassive = true; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
window.addEventListener("test", null, opts); |
|
|
|
|
} catch (e) {} |
|
|
|
|
|
|
|
|
|
var dragEl, |
|
|
|
|
parentEl, |
|
|
|
|
ghostEl, |
|
|
|
@ -77,7 +67,7 @@
|
|
|
|
|
$ = win.jQuery || win.Zepto, |
|
|
|
|
Polymer = win.Polymer, |
|
|
|
|
|
|
|
|
|
captureMode = supportsPassive ? {capture: false, passive: false} : false, |
|
|
|
|
captureMode = false, |
|
|
|
|
|
|
|
|
|
supportDraggable = !!('draggable' in document.createElement('div')), |
|
|
|
|
supportCssPointerEvents = (function (el) { |
|
|
|
@ -1402,6 +1392,17 @@
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
window.addEventListener('test', null, Object.defineProperty({}, 'passive', { |
|
|
|
|
get: function () { |
|
|
|
|
captureMode = { |
|
|
|
|
capture: false, |
|
|
|
|
passive: false |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
})); |
|
|
|
|
} catch (err) {} |
|
|
|
|
|
|
|
|
|
// Export utils
|
|
|
|
|
Sortable.utils = { |
|
|
|
|
on: _on, |
|
|
|
|