We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36668ba commit f6a6bcaCopy full SHA for f6a6bca
src/events/mouse.js
@@ -825,7 +825,7 @@ p5.prototype._updateNextMouseCoords = function(e) {
825
// https://developer.mozilla.org/en-US/docs/Web/API/Document/pointerLockElement
826
// "The pointerLockElement ... is null if lock is pending, pointer is unlocked,
827
// or the target is in another document."
828
- // In this case, we use mouseX/Y and pmousX/Y to calculate the distance,
+ // In this case, we use mouseX/Y and pmouseX/Y to calculate the distance,
829
// which allows movedX/Y to look consistent at different zoom levels acorss
830
// browsers.
831
const deltaX = this.mouseX - this.pmouseX;
0 commit comments