@react-hive/honey-layout 10.5.0 → 10.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.dev.cjs +10 -9
- package/dist/index.dev.cjs.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.dev.cjs
CHANGED
|
@@ -13898,11 +13898,11 @@ const useHoneyDrag = (draggableElementRef, { skipOnEndDragWhenStopped = false, e
|
|
|
13898
13898
|
};
|
|
13899
13899
|
const releaseDrag = async (isTriggerOnEndDrag, e) => {
|
|
13900
13900
|
await stopDrag(isTriggerOnEndDrag, e);
|
|
13901
|
-
window.removeEventListener('mousemove', mouseMoveHandler);
|
|
13902
|
-
window.removeEventListener('mouseup', mouseUpHandler);
|
|
13903
|
-
window.removeEventListener('touchmove', touchMoveHandler);
|
|
13904
|
-
window.removeEventListener('touchend', touchEndHandler);
|
|
13905
|
-
window.removeEventListener('touchcancel', touchCancelHandler);
|
|
13901
|
+
window.removeEventListener('mousemove', mouseMoveHandler, { capture: true });
|
|
13902
|
+
window.removeEventListener('mouseup', mouseUpHandler, { capture: true });
|
|
13903
|
+
window.removeEventListener('touchmove', touchMoveHandler, { capture: true });
|
|
13904
|
+
window.removeEventListener('touchend', touchEndHandler, { capture: true });
|
|
13905
|
+
window.removeEventListener('touchcancel', touchCancelHandler, { capture: true });
|
|
13906
13906
|
};
|
|
13907
13907
|
const mouseUpHandler = async (e) => {
|
|
13908
13908
|
await releaseDrag(true, e);
|
|
@@ -13946,15 +13946,16 @@ const useHoneyDrag = (draggableElementRef, { skipOnEndDragWhenStopped = false, e
|
|
|
13946
13946
|
await startDrag(touch.clientX, touch.clientY, e);
|
|
13947
13947
|
window.addEventListener('touchmove', touchMoveHandler, {
|
|
13948
13948
|
passive: true,
|
|
13949
|
+
capture: true,
|
|
13949
13950
|
});
|
|
13950
|
-
window.addEventListener('touchend', touchEndHandler);
|
|
13951
|
-
window.addEventListener('touchcancel', touchCancelHandler);
|
|
13951
|
+
window.addEventListener('touchend', touchEndHandler, { capture: true });
|
|
13952
|
+
window.addEventListener('touchcancel', touchCancelHandler, { capture: true });
|
|
13952
13953
|
};
|
|
13953
13954
|
const mouseDownHandler = async (e) => {
|
|
13954
13955
|
e.stopPropagation();
|
|
13955
13956
|
await startDrag(e.clientX, e.clientY, e);
|
|
13956
|
-
window.addEventListener('mousemove', mouseMoveHandler);
|
|
13957
|
-
window.addEventListener('mouseup', mouseUpHandler);
|
|
13957
|
+
window.addEventListener('mousemove', mouseMoveHandler, { capture: true });
|
|
13958
|
+
window.addEventListener('mouseup', mouseUpHandler, { capture: true });
|
|
13958
13959
|
};
|
|
13959
13960
|
draggableElement.addEventListener('mousedown', mouseDownHandler);
|
|
13960
13961
|
draggableElement.addEventListener('touchstart', touchStartHandler, {
|