From 17598edc3638286c157556e6b8b081de3fe1f645 Mon Sep 17 00:00:00 2001 From: owen-m1 Date: Fri, 19 Apr 2019 19:26:45 -0400 Subject: [PATCH] #1469: Fixed delay option on Android --- Sortable.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Sortable.js b/Sortable.js index 7f39be7df..455b95159 100644 --- a/Sortable.js +++ b/Sortable.js @@ -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) {