We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41fd3e4 commit bb3a562Copy full SHA for bb3a562
Sortable.js
@@ -462,6 +462,7 @@
462
}, true);
463
464
var nearestEmptyInsertDetectEvent = function(evt) {
465
+ evt = evt.touches ? evt.touches[0] : evt;
466
if (dragEl) {
467
var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
468
@@ -476,8 +477,9 @@
476
477
}
478
};
479
// We do not want this to be triggered if completed (bubbling canceled), so only define it here
- document.addEventListener('dragover', nearestEmptyInsertDetectEvent);
480
- document.addEventListener('mousemove', nearestEmptyInsertDetectEvent);
+ _on(document, 'dragover', nearestEmptyInsertDetectEvent);
481
+ _on(document, 'mousemove', nearestEmptyInsertDetectEvent);
482
+ _on(document, 'touchmove', nearestEmptyInsertDetectEvent);
483
484
/**
485
* @class Sortable
0 commit comments