|
|
@ -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, |
|
|
|
var dragEl, |
|
|
|
parentEl, |
|
|
|
parentEl, |
|
|
|
ghostEl, |
|
|
|
ghostEl, |
|
|
@ -77,7 +67,7 @@ |
|
|
|
$ = win.jQuery || win.Zepto, |
|
|
|
$ = win.jQuery || win.Zepto, |
|
|
|
Polymer = win.Polymer, |
|
|
|
Polymer = win.Polymer, |
|
|
|
|
|
|
|
|
|
|
|
captureMode = supportsPassive ? {capture: false, passive: false} : false, |
|
|
|
captureMode = false, |
|
|
|
|
|
|
|
|
|
|
|
supportDraggable = !!('draggable' in document.createElement('div')), |
|
|
|
supportDraggable = !!('draggable' in document.createElement('div')), |
|
|
|
supportCssPointerEvents = (function (el) { |
|
|
|
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
|
|
|
|
// Export utils
|
|
|
|
Sortable.utils = { |
|
|
|
Sortable.utils = { |
|
|
|
on: _on, |
|
|
|
on: _on, |
|
|
|