提交 e91fa29f 编写于 作者: L Lebedev Konstantin

Merge branch 'touch-action'

......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册