Skip to content

Commit 197f3ee

Browse files
committed
removed redundant calling of updateMouseCoords()
1 parent fbffbc1 commit 197f3ee

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/events/mouse.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,8 +819,6 @@ p5.prototype.mouseIsPressed = false;
819819

820820
p5.prototype._updateNextMouseCoords = function(e) {
821821
if (this._curElement !== null && (!e.touches || e.touches.length > 0)) {
822-
this._updateMouseCoords();
823-
824822
const mousePos = getMousePos(
825823
this._curElement.elt,
826824
this.width,

0 commit comments

Comments
 (0)