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

Bug: Map’s zoom buttons causes undesired panning #2299

Open
fancyham opened this issue Nov 26, 2024 · 0 comments · May be fixed by #2311
Open

Bug: Map’s zoom buttons causes undesired panning #2299

fancyham opened this issue Nov 26, 2024 · 0 comments · May be fixed by #2311
Assignees
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

Comments

@fancyham
Copy link
Collaborator

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)

  1. On Desktop, go to the map (this might also be a problem on mobile as well) by typing in “90015”. The map will appear with a red pin in the center.
  2. Click on the “+”

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

  • Device: Mac with latest
  • OS version: The latest as of today
  • Browser: Safari
@fancyham fancyham added Release Note: Bug Something isn't working (Shows on release notes under "Bug Fixes") Role: Front-end Front End Developer P-Feature: Map Food seeker map view Priority - High Production requires hotfix labels Nov 26, 2024
@fancyham fancyham added this to the 06. Bug fixes milestone Nov 26, 2024
@github-project-automation github-project-automation bot moved this to New Issue Approval in P: FOLA: Project Board Nov 26, 2024
@fancyham fancyham moved this from New Issue Approval to Prioritized Backlog in P: FOLA: Project Board Nov 26, 2024
@fancyham fancyham added Ready for dev lead Issue ready for dev lead to review skill: mapbox labels Nov 26, 2024
@whitneywind whitneywind self-assigned this Dec 9, 2024
@whitneywind whitneywind moved this from Prioritized Backlog to In Progress in P: FOLA: Project Board Dec 9, 2024
@whitneywind whitneywind linked a pull request Dec 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

2 participants