|
|
@ -71,6 +71,8 @@ |
|
|
|
$ = win.jQuery || win.Zepto, |
|
|
|
$ = win.jQuery || win.Zepto, |
|
|
|
Polymer = win.Polymer, |
|
|
|
Polymer = win.Polymer, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
captureMode = {capture: false, passive: false}, |
|
|
|
|
|
|
|
|
|
|
|
supportDraggable = !!('draggable' in document.createElement('div')), |
|
|
|
supportDraggable = !!('draggable' in document.createElement('div')), |
|
|
|
supportCssPointerEvents = (function (el) { |
|
|
|
supportCssPointerEvents = (function (el) { |
|
|
|
// false when IE11
|
|
|
|
// false when IE11
|
|
|
@ -86,7 +88,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
abs = Math.abs, |
|
|
|
abs = Math.abs, |
|
|
|
min = Math.min, |
|
|
|
min = Math.min, |
|
|
|
slice = [].slice, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
touchDragOverListeners = [], |
|
|
|
touchDragOverListeners = [], |
|
|
|
|
|
|
|
|
|
|
@ -1128,12 +1129,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function _on(el, event, fn) { |
|
|
|
function _on(el, event, fn) { |
|
|
|
el.addEventListener(event, fn, {capture: false, passive: false}); |
|
|
|
el.addEventListener(event, fn, captureMode); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function _off(el, event, fn) { |
|
|
|
function _off(el, event, fn) { |
|
|
|
el.removeEventListener(event, fn, false); |
|
|
|
el.removeEventListener(event, fn, captureMode); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|