Skip to content

Commit f6a6bca

Browse files
ksen0perminder-17
andauthored
Update src/events/mouse.js
Co-authored-by: Perminder Singh <127239756+perminder-17@users.noreply.github.com>
1 parent 36668ba commit f6a6bca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/events/mouse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ p5.prototype._updateNextMouseCoords = function(e) {
825825
// https://developer.mozilla.org/en-US/docs/Web/API/Document/pointerLockElement
826826
// "The pointerLockElement ... is null if lock is pending, pointer is unlocked,
827827
// or the target is in another document."
828-
// In this case, we use mouseX/Y and pmousX/Y to calculate the distance,
828+
// In this case, we use mouseX/Y and pmouseX/Y to calculate the distance,
829829
// which allows movedX/Y to look consistent at different zoom levels acorss
830830
// browsers.
831831
const deltaX = this.mouseX - this.pmouseX;

0 commit comments

Comments
 (0)