import{wrapHandler as o}from"./event-info.js";import{useDomEvent as e,addDomEvent as n}from"./use-dom-event.js";import{supportsPointerEvents as t,supportsTouchEvents as r,supportsMouseEvents as u}from"./utils.js";var i={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},p={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function m(o){return t()?o:r()?p[o]:u()?i[o]:o}function c(e,t,r,u){return n(e,m(t),o(r,"pointerdown"===t),u)}function s(n,t,r,u){return e(n,m(t),r&&o(r,"pointerdown"===t),u)}export{c as addPointerEvent,s as usePointerEvent};
//# sourceMappingURL=use-pointer-event.js.map
