Browse Source

fix bug where the last element in tree is shadow

pull/1371/head
Yorrd 6 years ago committed by GitHub
parent
commit
c07155cfa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Sortable.js

3
Sortable.js

@ -562,9 +562,10 @@
var parent = target;
var i = touchDragOverListeners.length;
let previousTarget = target;
do {
target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
} while (target && target.shadowRoot);
} while (target && target.shadowRoot && previousTarget !== target);
parent = target;

Loading…
Cancel
Save