visgl / visgl/deck.gl

[Bug] Inertia for pinchZoom jumpy on iOS

Open
#8,368 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Open Safari on iOS
  2. Open project using inertia enabled controller, e.g. https://codepen.io/KaHole/pen/MWxYXep
  3. Perform a couple of small 2 finger pinch to zoom gestures. (You may need to test for a while)
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.