[Bug] Inertia for pinchZoom jumpy on iOS
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 14.6k
- Forks
- 2.3k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 42
Description
Description
When enabling inertia: true for the DeckGL controller, 2 finger pinch to zoom on iOS behaves very erraticly.
Particularly small pinches result in extreme jumps in zoom making the inertia option unusable with iOS Safari.
Flavors
- Script tag
- React
- Python/Jupyter notebook
- MapboxOverlay
- GoogleMapsOverlay
- CartoLayer
- ArcGIS
Expected Behavior
Pinching to zoom with inertia giving a smooth pinch to zoom experience without jumpy and erratic behaviour.
Steps to Reproduce
https://codepen.io/KaHole/pen/MWxYXep
- Open Safari on iOS
- Open project using inertia enabled controller, e.g. https://codepen.io/KaHole/pen/MWxYXep
- Perform a couple of small 2 finger pinch to zoom gestures. (You may need to test for a while)
- Observe the extreme jumps in zoom level that sometimes occur.
The issues arise with all kinds of pinches, but more frequently with small pinches.
Environment
- Framework version: 8.9.33
- Browser: iOS Safari
- OS: iOS 17.2.1
Logs
No response
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
Start by reproducing the issue in the linked CodePen on iOS Safari with the DeckGL controller's inertia enabled, using several small two-finger pinches. Trace the controller's pinch-zoom and inertia handling from that entry point. Done means small and large pinches produce smooth, stable zoom changes without extreme jumps on iOS Safari.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100