Skip to content

Commit

Permalink
Merge pull request #5437 from michaeleggers/fix-issue-5430
Browse files Browse the repository at this point in the history
explicitly check if mouseIsPressed is true for documentation
  • Loading branch information
limzykenneth authored Oct 5, 2021
2 parents 5449a42 + 0534f40 commit 817b280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/events/mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ p5.prototype.pwinMouseY = 0;
* background(237, 34, 93);
* fill(0);
*
* if (mouseIsPressed) {
* if (mouseIsPressed === true) {
* if (mouseButton === LEFT) {
* ellipse(50, 50, 50, 50);
* }
Expand Down Expand Up @@ -400,7 +400,7 @@ p5.prototype.mouseButton = 0;
* background(237, 34, 93);
* fill(0);
*
* if (mouseIsPressed) {
* if (mouseIsPressed === true) {
* ellipse(50, 50, 50, 50);
* } else {
* rect(25, 25, 50, 50);
Expand Down

0 comments on commit 817b280

Please sign in to comment.