movementY property
Returns the difference in vertical position (in screenY units) since the last mousemove (or pointermove) event.
Syntax
y = mouseEvt.movementY
Property values
Type: long
Change in y pointer position since last mousemove / pointermove
Standards information
Remarks
The movementX and movementY attributes are valid whether or not the page is in pointer lock state.
See also
Show: