Reference movedY

movedY

A Number system variable that tracks the mouse's vertical movement.

movedY tracks how many pixels the mouse moves up or down between frames. movedY will have a negative value if the mouse moves up between frames and a positive value if it moves down. movedY can be calculated as mouseY - pmouseY.

Note: movedY continues updating even when requestPointerLock() is active.

Examples

Notice any errors or typos? Please let us know. Please feel free to edit src/events/mouse.js and open a pull request!

Related References