Skip to content

Commit 4c24f73

Browse files
ksen0perminder-17
andauthored
Update src/events/mouse.js
Co-authored-by: Perminder Singh <[email protected]>
1 parent f6a6bca commit 4c24f73

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
@@ -826,7 +826,7 @@ p5.prototype._updateNextMouseCoords = function(e) {
826826
// "The pointerLockElement ... is null if lock is pending, pointer is unlocked,
827827
// or the target is in another document."
828828
// 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
829+
// which allows movedX/Y to look consistent at different zoom levels across
830830
// browsers.
831831
const deltaX = this.mouseX - this.pmouseX;
832832
const deltaY = this.mouseY - this.pmouseY;

0 commit comments

Comments
 (0)