'use strict';

var isPrimaryPointer = require('../../../../../../motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js');

function extractEventInfo(event) {
    return {
        point: {
            x: event.pageX,
            y: event.pageY,
        },
    };
}
const addPointerInfo = (handler) => (event) => isPrimaryPointer.isPrimaryPointer(event) && handler(event, extractEventInfo(event));

exports.addPointerInfo = addPointerInfo;
exports.extractEventInfo = extractEventInfo;
