Bug: Map’s zoom buttons causes undesired panning #2299
Labels
P-Feature: Map
Food seeker map view
Priority - High
Production requires hotfix
Ready for dev lead
Issue ready for dev lead to review
Release Note: Bug
Something isn't working (Shows on release notes under "Bug Fixes")
Role: Front-end
Front End Developer
skill: mapbox
Milestone
Describe the bug
Clicking on the on-map +/- zoom buttons cause the map to zoom in and out, however the zoom’s origin/center is in the wrong place, causing the map to pan to the side when zooming in and out.
Steps to reproduce the issue
(if applicable, please specify platform (iOS, Android, Windows, Mac version) and brower)
What's the expected result?
The red pin should stay centered on the map while the zoom level increases.
What's the actual result?
The red pin slides to the side, even though it’s in the center of the visible map.
The center of the map seems to be calculated by including the hidden portion under the text panel.
The center should be calculated based on the currently visible/exposed map area instead.
Additional details / screenshot
Device configuration
The text was updated successfully, but these errors were encountered: