MCPcopy Index your code
hub / github.com/SortableJS/Sortable / nearestEmptyInsertDetectEvent

Function nearestEmptyInsertDetectEvent

Sortable.js:1031–1049  ·  view source on GitHub ↗
(evt)

Source from the content-addressed store, hash-verified

1029 }, true);
1030 }
1031 var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {
1032 if (dragEl) {
1033 evt = evt.touches ? evt.touches[0] : evt;
1034 var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
1035 if (nearest) {
1036 // Create imitation event
1037 var event = {};
1038 for (var i in evt) {
1039 if (evt.hasOwnProperty(i)) {
1040 event[i] = evt[i];
1041 }
1042 }
1043 event.target = event.rootEl = nearest;
1044 event.preventDefault = void 0;
1045 event.stopPropagation = void 0;
1046 nearest[expando]._onDragOver(event);
1047 }
1048 }
1049 };
1050 var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
1051 if (dragEl) {
1052 dragEl.parentNode[expando]._isOutsideThisEl(evt.target);

Callers 1

completedFunction · 0.70

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…