|
804 | 804 | _find(dragEl, criteria.trim(), _disableDraggable); |
805 | 805 | }); |
806 | 806 |
|
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); |
810 | 810 |
|
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); |
818 | 814 |
|
819 | 815 | // Make dragEl draggable (must be before delay for FireFox) |
820 | 816 | if (FireFox && this.nativeDraggable) { |
|
0 commit comments