import{isTouchEvent as n}from"../gestures/utils/event-type.js";var t={pageX:0,pageY:0};function e(n,e){void 0===e&&(e="page");var r=n.touches[0]||n.changedTouches[0]||t;return{x:r[e+"X"],y:r[e+"Y"]}}function r(n,t){return void 0===t&&(t="page"),{x:n[t+"X"],y:n[t+"Y"]}}function o(t,o){return void 0===o&&(o="page"),{point:n(t)?e(t,o):r(t,o)}}function u(n){return o(n,"client")}var i=function(n,t){void 0===t&&(t=!1);var e,r=function(t){return n(t,o(t))};return t?(e=r,function(n){var t=n instanceof MouseEvent;(!t||t&&0===n.button)&&e(n)}):r};export{o as extractEventInfo,u as getViewportPointFromEvent,i as wrapHandler};
//# sourceMappingURL=event-info.js.map
