diff --git a/Sortable.js b/Sortable.js index 8b5a8e4..b942ea6 100644 --- a/Sortable.js +++ b/Sortable.js @@ -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,