Browse Source

Fix touch event listener when element is inside a shadow dom

pull/1200/head
Aline Lee Nogueira and William Seiti Mizuta 7 years ago committed by Tech
parent
commit
f5cae641f7
  1. 6
      Sortable.js
  2. 3
      Sortable.min.js

6
Sortable.js

@ -527,9 +527,13 @@
}
var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY),
parent = target,
i = touchDragOverListeners.length;
if (target && target.shadowRoot) {
target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
}
var parent = target;
if (parent) {
do {
if (parent[expando]) {

3
Sortable.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save