|
|
|
@ -67,7 +67,7 @@
|
|
|
|
|
$ = win.jQuery || win.Zepto, |
|
|
|
|
Polymer = win.Polymer, |
|
|
|
|
|
|
|
|
|
captureMode = {capture: false, passive: false}, |
|
|
|
|
captureMode = false, |
|
|
|
|
|
|
|
|
|
supportDraggable = !!('draggable' in document.createElement('div')), |
|
|
|
|
supportCssPointerEvents = (function (el) { |
|
|
|
@ -231,7 +231,6 @@
|
|
|
|
|
// Export instance
|
|
|
|
|
el[expando] = this; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Default options
|
|
|
|
|
var defaults = { |
|
|
|
|
group: Math.random(), |
|
|
|
@ -1393,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, |
|
|
|
|