Skip to content

Commit 9fae052

Browse files
committed
#1469: Fixed delay option on Android
1 parent 7244a67 commit 9fae052

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Sortable.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -804,17 +804,13 @@
804804
_find(dragEl, criteria.trim(), _disableDraggable);
805805
});
806806

807-
_on(document, 'dragover', nearestEmptyInsertDetectEvent);
808-
_on(document, 'mousemove', nearestEmptyInsertDetectEvent);
809-
_on(document, 'touchmove', nearestEmptyInsertDetectEvent);
807+
_on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);
808+
_on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);
809+
_on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);
810810

811-
if (options.supportPointer) {
812-
_on(ownerDocument, 'pointerup', _this._onDrop);
813-
} else {
814-
_on(ownerDocument, 'mouseup', _this._onDrop);
815-
_on(ownerDocument, 'touchend', _this._onDrop);
816-
_on(ownerDocument, 'touchcancel', _this._onDrop);
817-
}
811+
_on(ownerDocument, 'mouseup', _this._onDrop);
812+
_on(ownerDocument, 'touchend', _this._onDrop);
813+
_on(ownerDocument, 'touchcancel', _this._onDrop);
818814

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

0 commit comments

Comments
 (0)