Skip to content

Commit

Permalink
Merge pull request #6938 from nickmcintyre/ref-events-touch
Browse files Browse the repository at this point in the history
Fix typo in touchStarted()
  • Loading branch information
Qianqianye authored Apr 3, 2024
2 parents 5a60cdc + b637cb2 commit ac349e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function getTouchInfo(canvas, w, h, e, i = 0) {
* On touchscreen devices, <a href="#/p5/mousePressed">mousePressed()</a> will
* run when a user’s touch starts if `touchStarted()` isn’t declared. If
* `touchStarted()` is declared, then `touchStarted()` will run when a user’s
* touch ends and <a href="#/p5/mousePressed">mousePressed()</a> won’t.
* touch starts and <a href="#/p5/mousePressed">mousePressed()</a> won’t.
*
* Note: `touchStarted()`, <a href="#/p5/touchEnded">touchEnded()</a>, and
* <a href="#/p5/touchMoved">touchMoved()</a> are all related.
Expand Down

0 comments on commit ac349e3

Please sign in to comment.