Move the mouse to the coordinates provided by an event's clientX
and clientY
coordinates.
Additionally, debug
can be enabled to see the cursor position of of the click
action.
Example
const event = { clientX: 500, clientY: 500 }; // sample event
$$$.moveMouse(event); // updates the mouse positions provided in the event
$$$.moveMouse(event, true); // enable cursor visual with `debug` set to `true`