import "../motion-utils/dist-es-errors.js";
import { isPrimaryPointer } from "../motion-dom/dist-es-gestures-utils-is-primary-pointer.js";
function extractEventInfo(event) {
  return {
    point: {
      x: event.pageX,
      y: event.pageY
    }
  };
}
const addPointerInfo = (handler) => {
  return (event) => isPrimaryPointer(event) && handler(event, extractEventInfo(event));
};
export {
  addPointerInfo,
  extractEventInfo
};
//# sourceMappingURL=dist-es-events-event-info.js.map
