Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: jumpy map after zoom #903

Merged
merged 1 commit into from May 7, 2024
Merged

Conversation

raphael-arce
Copy link
Contributor

fixes the bug on mobile, when you pinch to zoom, the map jumps sometimes a bit around on zoom end. This is because zoomend used to only set the zoom in the state. However, mapbox can zoom+pan at the same time, which means that using pinch to zoom also slightly moves the center of the map, which then gets not updated correctly in the state

Copy link

vercel bot commented May 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
giessdenkiez-de ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 3, 2024 3:23pm

Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
Copy link
Contributor

@aeschi aeschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@raphael-arce raphael-arce merged commit 7b2d306 into staging May 7, 2024
5 checks passed
@raphael-arce raphael-arce deleted the fix/jumpy-map-after-zoom branch May 7, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants