Skip to content

Commit

Permalink
#1469: Fixed delay option on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-m1 committed Apr 19, 2019
1 parent 7244a67 commit 9fae052
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,17 +804,13 @@
_find(dragEl, criteria.trim(), _disableDraggable);
});

_on(document, 'dragover', nearestEmptyInsertDetectEvent);
_on(document, 'mousemove', nearestEmptyInsertDetectEvent);
_on(document, 'touchmove', nearestEmptyInsertDetectEvent);
_on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);
_on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);
_on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);

if (options.supportPointer) {
_on(ownerDocument, 'pointerup', _this._onDrop);
} else {
_on(ownerDocument, 'mouseup', _this._onDrop);
_on(ownerDocument, 'touchend', _this._onDrop);
_on(ownerDocument, 'touchcancel', _this._onDrop);
}
_on(ownerDocument, 'mouseup', _this._onDrop);
_on(ownerDocument, 'touchend', _this._onDrop);
_on(ownerDocument, 'touchcancel', _this._onDrop);

// Make dragEl draggable (must be before delay for FireFox)
if (FireFox && this.nativeDraggable) {
Expand Down

0 comments on commit 9fae052

Please sign in to comment.