Skip to content

Commit c64814e

Browse files
committed
Fix copy-and-paste error with wrong variable name
1 parent 3487c1f commit c64814e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dom/p5.Element.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,9 +1501,9 @@ class Element {
15011501
// For details, see https://github.com/processing/p5.js/issues/3087.
15021502
const eventPrependedFxn = function (event) {
15031503
this._pInst.mouseIsPressed = true;
1504-
this._pInst._activePointers.set(e.pointerId, e);
1504+
this._pInst._activePointers.set(event.pointerId, event);
15051505
this._pInst._setMouseButton(event);
1506-
this._pInst._updatePointerCoords(e);
1506+
this._pInst._updatePointerCoords(event);
15071507
// Pass along the return-value of the callback:
15081508
return fxn.call(this, event);
15091509
};

0 commit comments

Comments
 (0)