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 462462 } , true ) ;
463463
464464 var nearestEmptyInsertDetectEvent = function ( evt ) {
465+ evt = evt . touches ? evt . touches [ 0 ] : evt ;
465466 if ( dragEl ) {
466467 var nearest = _detectNearestEmptySortable ( evt . clientX , evt . clientY ) ;
467468
476477 }
477478 } ;
478479 // 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 ) ;
481483
482484 /**
483485 * @class Sortable
You can’t perform that action at this time.
0 commit comments