1import{r as t}from"./BKRH0lRf.js";function y(){const o=t(null),u=t(!1),a=t(0),i=t(0),r=t(!1);function l(n){o.value&&("button"in n&&n.button!==0||(u.value=!0,r.value=!1,a.value=n.clientX,i.value=o.value.scrollLeft,o.value.style.cursor="grabbing","pointerId"in n&&o.value.setPointerCapture(n.pointerId),(!("pointerType"in n)||n.pointerType==="mouse")&&n.preventDefault()))}function f(n){if(!u.value||!o.value)return;const s=n.clientX-a.value;Math.abs(s)>2&&(r.value=!0,n.preventDefault()),o.value.scrollLeft=i.value-s}function e(n){u.value=!1,o.value&&(n&&"pointerId"in n&&o.value.hasPointerCapture(n.pointerId)&&o.value.releasePointerCapture(n.pointerId),o.value.style.cursor="grab")}function c(n){l(n)}function p(n){f(n)}function v(n){e(n)}function g(n){e(n)}function D(n){l(n)}function M(n){f(n)}function P(n){e(n)}function d(n){n.pointerType==="mouse"&&e(n)}function b(n){e(n)}return{containerRef:o,isDragging:u,hasMoved:r,onMouseDown:c,onMouseMove:p,onMouseUp:v,onMouseLeave:g,onPointerDown:D,onPointerMove:M,onPointerUp:P,onPointerLeave:d,onPointerCancel:b}}export{y as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.