MouseEvent.movementY

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.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support

37

22 — 37 webkit

Yes

41

1 — 41 moz

No ? No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support37

37

Yes — 37 webkit

Yes

41

4 — 41 moz

? No ?

See also

Document Tags and Contributors

Contributors to this page: fscholz, haxiomic, jpmedley, libbymc, cvrebert, teoli, kscarfone, Jeremie
Last updated by: fscholz,