Reference pwinMouseY

pwinMouseY

A Number variable that tracks the mouse's previous vertical position within the browser.

pwinMouseY keeps track of the mouse's position relative to the top-left corner of the browser window. Its value is winMouseY from the previous frame. For example, if the mouse was 50 pixels from the top edge of the browser during the last frame, then pwinMouseY will be 50.

On a touchscreen device, pwinMouseY will hold the y-coordinate of the most recent touch point. pwinMouseY is reset to the current winMouseY value at the start of each touch event.

Note: Use pmouseY to track the mouse’s previous y-coordinate within the canvas.

Examples

This page is generated from the comments in src/events/mouse.js . Please feel free to edit it and submit a pull request!

Related References