Skip to content

Commit

Permalink
Remove drag disabiling on mousemove
Browse files Browse the repository at this point in the history
When using drag delay, the event is cancelled on a series of events, including `mousemove` which seems to be always fired on Chrome Android, even in cases when `touchmove` doesn't fire. This cause the drag to never commence when using the delay property. See SortableJS#981
  • Loading branch information
wytrych committed Oct 20, 2016
1 parent f4f1ad3 commit b854bed
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@
_on(ownerDocument, 'mouseup', _this._disableDelayedDrag);
_on(ownerDocument, 'touchend', _this._disableDelayedDrag);
_on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);
_on(ownerDocument, 'mousemove', _this._disableDelayedDrag);
_on(ownerDocument, 'touchmove', _this._disableDelayedDrag);

_this._dragStartTimer = setTimeout(dragStartFn, options.delay);
Expand Down

0 comments on commit b854bed

Please sign in to comment.