mapbox / mapbox/mapbox-gl-js

On mobile zooming slows or accelerates panning speed

Open
#10,522 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs investigation :mag:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

**mapbox-gl-js version**: 2.1.1

**browser**:
- iOS 14.4.1 Safari
- Android 9 Chrome 89.0

### Steps to Trigger Behavior

1. Open https://docs.mapbox.com/mapbox-gl-js/api/ in your mobile browser and scroll to the example map
2. zoom in or out with two fingers
2. while zooming pan up or down to move the map

### Expected Behavior

- Panning while Zoom in: the panning speed accelerates and the map is moving really fast
- Panning while Zoom out: the panning speed slows down and the map is moving really slow

### Actual Behavior

- panning speed (map moving speed) is the same like without zooming at the specific zooming level

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 gesture on the API example at https://docs.mapbox.com/mapbox-gl-js/api/ using mobile Safari and Chrome. Compare panning during pinch zoom with panning alone, and resolve the contradiction between the title, expected behavior, and actual behavior before identifying the relevant gesture-handling entry point. Done means the intended panning speed is consistent with the clarified behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.