File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 462
462
} , true ) ;
463
463
464
464
var nearestEmptyInsertDetectEvent = function ( evt ) {
465
+ evt = evt . touches ? evt . touches [ 0 ] : evt ;
465
466
if ( dragEl ) {
466
467
var nearest = _detectNearestEmptySortable ( evt . clientX , evt . clientY ) ;
467
468
476
477
}
477
478
} ;
478
479
// We do not want this to be triggered if completed (bubbling canceled), so only define it here
479
- document . addEventListener ( 'dragover' , nearestEmptyInsertDetectEvent ) ;
480
- document . addEventListener ( 'mousemove' , nearestEmptyInsertDetectEvent ) ;
480
+ _on ( document , 'dragover' , nearestEmptyInsertDetectEvent ) ;
481
+ _on ( document , 'mousemove' , nearestEmptyInsertDetectEvent ) ;
482
+ _on ( document , 'touchmove' , nearestEmptyInsertDetectEvent ) ;
481
483
482
484
/**
483
485
* @class Sortable
You can’t perform that action at this time.
0 commit comments