deviceShaken() not triggered on iOS 13+
Open
Nobody has claimed this yet.
Area:Events
Bug
Mobile
- Dominant language
- JavaScript
- Stars
- 24k
- Forks
- 3.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 25
Description
Most appropriate sub-area of p5.js?
- Color
- Core/Environment/Rendering
- Data
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Other (specify if possible)
Details about the bug:
- p5.js version: 0.9.0
- Web browser and version: Chrome > 80.
- Operating System: Android >= 8.0
- Steps to reproduce this:
I've included p5.dom.js (i've tried also the latest version with only p5.js but the issue is still there) and none of the above events seems to be fired.
My mobile phone is a Huawei P20 Lite it should have all the properties and gyroscope/accelerometer issues only come across when using p5.js
Here's my code.
Oddly enough this one actually works on my phone
https://editor.p5js.org/kan352/sketches/HJbxxRwWg
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
First reconcile the iOS 13+ title with the Android environment described in the report, then reproduce the failure using the attached deviceEventNotFired.docx and compare it with the linked p5.js Editor sketch that works. Trace p5.js event handling for deviceShaken() and verify the event fires on the affected setup without regressing the working sketch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100