Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

MouseEvent
requestPointerLock
exitPointerLock

 

 

Show:
© 2017 Microsoft