提交 a60ded8c 编写于 作者: O owen-m1

#1634: Fix onSpill plugins on mobile

上级 f75c972d
......@@ -12,9 +12,9 @@ const drop = function({
}) {
let toSortable = putSortable || activeSortable;
hideGhostForTarget();
let target = document.elementFromPoint(originalEvent.clientX, originalEvent.clientY);
let touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
let target = document.elementFromPoint(touch.clientX, touch.clientY);
unhideGhostForTarget();
if (toSortable && !toSortable.el.contains(target)) {
dispatchSortableEvent('spill');
this.onSpill({ dragEl, putSortable });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册