Touches array doesn't clear correctly
Open
Nobody has claimed this yet.
Area:Events
Bug
- Dominant language
- JavaScript
- Stars
- 24k
- Forks
- 3.8k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 25
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build Process
- Unit Testing
- Internalization
- Friendly Errors
- Other (specify if possible)
p5.js version
1.4.1
Web browser and version
Safari 16.3.1
Operating System
iOS
Steps to reproduce this
Touches array doesn't seem to clear correctly when the number of screen touches is more than 5. If I touch the screen with 1-5 touches, letting them all go works fine, but anywhere above 5 and the array doesn't clear until I touch again, even if I stop touching one finger at a time.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using p5.js 1.4.1 on Safari 16.3.1 for iOS by releasing more than five simultaneous touches one at a time. Start by locating the touch-event handling, then verify that the touches array is empty immediately after all touches are released, without requiring another touch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100