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

Function nearestEmptyInsertDetectEvent

modular/sortable.esm.js:1025–1043  ·  view source on GitHub ↗
(evt)

Source from the content-addressed store, hash-verified

1023 }, true);
1024}
1025var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {
1026 if (dragEl) {
1027 evt = evt.touches ? evt.touches[0] : evt;
1028 var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
1029 if (nearest) {
1030 // Create imitation event
1031 var event = {};
1032 for (var i in evt) {
1033 if (evt.hasOwnProperty(i)) {
1034 event[i] = evt[i];
1035 }
1036 }
1037 event.target = event.rootEl = nearest;
1038 event.preventDefault = void 0;
1039 event.stopPropagation = void 0;
1040 nearest[expando]._onDragOver(event);
1041 }
1042 }
1043};
1044var _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {
1045 if (dragEl) {
1046 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…