diff --git a/src/core/p5.Element.js b/src/core/p5.Element.js index a6cf66975d..f01ee58b8b 100644 --- a/src/core/p5.Element.js +++ b/src/core/p5.Element.js @@ -236,7 +236,7 @@ p5.Element.prototype.mousePressed = function(fxn) { this._pInst._setProperty('mouseIsPressed', true); this._pInst._setMouseButton(event); // Pass along the return-value of the callback: - return fxn.call(this); + return fxn.call(this, event); }; // Pass along the event-prepended form of the callback. p5.Element._adjustListener('mousedown', eventPrependedFxn, this);