@mantine-vue/hooks 2.3.0 → 2.4.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/cjs/index.cjs +2 -0
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +2 -0
- package/esm/index.mjs.map +1 -1
- package/package.json +1 -1
package/esm/index.mjs
CHANGED
|
@@ -2939,6 +2939,7 @@ function useFloatingWindow(options = {}) {
|
|
|
2939
2939
|
document.removeEventListener("mouseup", end);
|
|
2940
2940
|
document.removeEventListener("touchmove", move);
|
|
2941
2941
|
document.removeEventListener("touchend", end);
|
|
2942
|
+
document.removeEventListener("touchcancel", end);
|
|
2942
2943
|
};
|
|
2943
2944
|
const move = (event) => {
|
|
2944
2945
|
if (!isDragging.value || !element.value) return;
|
|
@@ -2971,6 +2972,7 @@ function useFloatingWindow(options = {}) {
|
|
|
2971
2972
|
document.addEventListener("mouseup", end);
|
|
2972
2973
|
document.addEventListener("touchmove", move, { passive: false });
|
|
2973
2974
|
document.addEventListener("touchend", end);
|
|
2975
|
+
document.addEventListener("touchcancel", end);
|
|
2974
2976
|
};
|
|
2975
2977
|
const setRef = (node) => {
|
|
2976
2978
|
const safeNode = node instanceof Element ? node : null;
|