Skip to content

Commit 852162b

Browse files
committed
Update movedX/Y documentation
1 parent 4c24f73 commit 852162b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/events/mouse.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import * as constants from '../core/constants';
2020
* Note: `movedX` continues updating even when
2121
* <a href="#/p5/requestPointerLock">requestPointerLock()</a> is active.
2222
* But keep in mind that during an active pointer lock, mouseX and pmouseX
23-
* are not locked, so `movedX` is based on
23+
* are locked, so `movedX` is based on
2424
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX">the MouseEvent's movementX value</a>
2525
* (which may behave differently in different browsers when the user
2626
* is zoomed in or out).
@@ -69,6 +69,11 @@ p5.prototype.movedX = 0;
6969
*
7070
* Note: `movedY` continues updating even when
7171
* <a href="#/p5/requestPointerLock">requestPointerLock()</a> is active.
72+
* But keep in mind that during an active pointer lock, mouseX and pmouseX
73+
* are locked, so `movedX` is based on
74+
* <a href="https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX">the MouseEvent's movementX value</a>
75+
* (which may behave differently in different browsers when the user
76+
* is zoomed in or out).
7277
*
7378
* @property {Number} movedY
7479
* @readOnly

0 commit comments

Comments
 (0)