/**
 * @since Last modified: 2024-08-06 10:09:29
 * @function getEvtTarget
 * @description Get the event.target from desktop or mobile devices..
 * @param {any} evt  - In the mobile environment, the event object for cursor events has the `targetTouches` and `changedTouches` properties, which are not available in the desktop environment.
 * @returns {elementHTML} - Return event.target.
 * @see {@link https://codepen.io/axui/pen/mdZwrdM|demo @ codepen}
 * @example
 * ax.getEvtTarget(event);
 * <!--return target node-->
 */
'use strict';
import isMobi from './isMobi';
const getEvtTarget = (evt) => isMobi ? document.elementFromPoint(evt.targetTouches[0].clientX, evt.targetTouches[0].clientY) : evt.target;
export default getEvtTarget;
