import{r as t}from"./index-C8qz7c0N.js";function f(){const c=t(""),l=t(0),o=t(0),e=t(0),a=t(0),n=t(0),v=t(0);function r(s){const u=s.touches[0];c.value="",l.value=0,o.value=0,e.value=0,a.value=0,n.value=u.clientX,v.value=u.clientY}function i(s){const u=s.touches[0];l.value=u.clientX-n.value,o.value=u.clientY-v.value,e.value=Math.abs(l.value),a.value=Math.abs(o.value),c.value=e.value>a.value?"horizontal":e.value<a.value?"vertical":""}return{touchStart:r,touchMove:i,direction:c,deltaX:l,deltaY:o,offsetX:e,offsetY:a,startX:n,startY:v}}export{f as u};
