({
originalEvent,
putSortable,
dragEl,
activeSortable,
dispatchSortableEvent,
hideGhostForTarget,
unhideGhostForTarget
})
| 2 | |
| 3 | |
| 4 | const drop = function({ |
| 5 | originalEvent, |
| 6 | putSortable, |
| 7 | dragEl, |
| 8 | activeSortable, |
| 9 | dispatchSortableEvent, |
| 10 | hideGhostForTarget, |
| 11 | unhideGhostForTarget |
| 12 | }) { |
| 13 | if (!originalEvent) return; |
| 14 | let toSortable = putSortable || activeSortable; |
| 15 | hideGhostForTarget(); |
| 16 | let touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent; |
| 17 | let target = document.elementFromPoint(touch.clientX, touch.clientY); |
| 18 | unhideGhostForTarget(); |
| 19 | if (toSortable && !toSortable.el.contains(target)) { |
| 20 | dispatchSortableEvent('spill'); |
| 21 | this.onSpill({ dragEl, putSortable }); |
| 22 | } |
| 23 | }; |
| 24 | |
| 25 | function Revert() {} |
| 26 |
nothing calls this directly
no test coverage detected
searching dependent graphs…