mapbox / mapbox/mapbox-gl-js

performance regression between v0.39 and v0.40 for keyboard scrolling on tilted maps

Open
#5,996 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

**mapbox-gl-js version:** 0.32.1 vs. 0.43.0

This is a follow up to #5752.
The perceived scrolling performance that is triggered by a continuous arrow key is worse comparing v0.32.1 and v0.42.0

My test case:
- open both URLs in a desktop browser, maximize the window
- click into the map to set the focus
- hold the right arrow key to move the map

A kind of smooth experience in v0.32.1
https://mprove.de/chronoscope/map.html?q=53.66801,10.00749&z=17.00&y=1937&t=60

A rocky ride in v0.43.0
https://mprove.de/chronoscope/map43.html?q=53.66801,10.00749&z=17.00&y=1937&t=60

For comparison: v0.42.2 is a little bit worse than v0.43.0
https://mprove.de/chronoscope/map42.html?q=53.66801,10.00749&z=17.00&y=1937&t=60

I have the same issue in MacOS Safari and MacOS Google Chrome.

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

Reproduce the regression by opening the v0.32.1, v0.42.2, and v0.43.0 URLs in a desktop browser, focusing the map, and holding the right arrow key. Compare the scrolling behavior across versions, then trace the keyboard-scrolling path; done means the newer version no longer has the reported rocky ride.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.