The MouseEvent.movementY
read-only property provides the shift in the Y 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.movementY = currentEvent.screenY - previousEvent.screenY
.
Syntax
var yShift = instanceOfMouseEvent.movementY
Return value
A number
Specifications
Specification | Status | Comment |
---|---|---|
Pointer Lock The definition of 'MouseEvent.movementY' in that specification. |
Candidate Recommendation | Initial definition. |