@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 CHANGED
@@ -2940,6 +2940,7 @@ function useFloatingWindow(options = {}) {
2940
2940
  document.removeEventListener("mouseup", end);
2941
2941
  document.removeEventListener("touchmove", move);
2942
2942
  document.removeEventListener("touchend", end);
2943
+ document.removeEventListener("touchcancel", end);
2943
2944
  };
2944
2945
  const move = (event) => {
2945
2946
  if (!isDragging.value || !element.value) return;
@@ -2972,6 +2973,7 @@ function useFloatingWindow(options = {}) {
2972
2973
  document.addEventListener("mouseup", end);
2973
2974
  document.addEventListener("touchmove", move, { passive: false });
2974
2975
  document.addEventListener("touchend", end);
2976
+ document.addEventListener("touchcancel", end);
2975
2977
  };
2976
2978
  const setRef = (node) => {
2977
2979
  const safeNode = node instanceof Element ? node : null;