"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("../motion-utils/dist-es-errors.cjs");
const isPrimaryPointer = require("../motion-dom/dist-es-gestures-utils-is-primary-pointer.cjs");
function extractEventInfo(event) {
  return {
    point: {
      x: event.pageX,
      y: event.pageY
    }
  };
}
const addPointerInfo = (handler) => {
  return (event) => isPrimaryPointer.isPrimaryPointer(event) && handler(event, extractEventInfo(event));
};
exports.addPointerInfo = addPointerInfo;
exports.extractEventInfo = extractEventInfo;
//# sourceMappingURL=dist-es-events-event-info.cjs.map
