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 3487c1f commit c64814eCopy full SHA for c64814e
src/dom/p5.Element.js
@@ -1501,9 +1501,9 @@ class Element {
1501
// For details, see https://github.com/processing/p5.js/issues/3087.
1502
const eventPrependedFxn = function (event) {
1503
this._pInst.mouseIsPressed = true;
1504
- this._pInst._activePointers.set(e.pointerId, e);
+ this._pInst._activePointers.set(event.pointerId, event);
1505
this._pInst._setMouseButton(event);
1506
- this._pInst._updatePointerCoords(e);
+ this._pInst._updatePointerCoords(event);
1507
// Pass along the return-value of the callback:
1508
return fxn.call(this, event);
1509
};
0 commit comments