Results 1 - 1 of 1


The MouseEvent.movementX read-only property provides the shift in the X coordinate of the mouse pointer between that event and the previous mousemove event. In other words, the value of that property is computed that way : currentEvent.movementX = currentEvent.screenX - previousEvent.screenX.
API DOM DOM Events mouse lock MovementX pointer lock Property Read-only Reference