/**
 * @since Last modified: 2024/06/05 04:51:18
 * @function getClientObj
 * @description Obtain the terminal client object (clientX and clientY).
 * @param {object} event - Mouse or touch event object.
 * @returns  {number}  - The client object.
 * @see {@link https://codepen.io/axui/pen/abrWPjo|demo @ codepen}
 * @example
 * ax.getClientObj(e);
 * <!--return {x,y}-->
 */
'use strict';
import isMobi from "./isMobi";
const getClientObj = (event) => {
    let tmp = isMobi ? event.targetTouches[0] : event;
    return tmp ? { x: tmp.clientX, y: tmp.clientY } : null;
};
export default getClientObj;
