technologiestiftung / giessdenkiez-de

The consequences of climate change, especially the dry and hot summers, are putting a strain on Berlin's ecosystem. Our urban trees are drying out and suffering long-term damage. Gieß den Kiez is made to enable coordinated citizen participation in the irrigation of urban trees.
https://www.giessdenkiez.de
MIT License
84 stars 31 forks source link

Fix/jumpy map after zoom #902

Closed raphael-arce closed 6 months ago

raphael-arce commented 6 months ago

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

vercel[bot] commented 6 months ago

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

Name Status Preview Updated (UTC)
giessdenkiez-de ✅ Ready (Inspect) Visit Preview May 3, 2024 3:19pm