Skip to content

Remove excessive zoom changes when changing stops in Stop Viewer #900

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

Merged
merged 1 commit into from
May 16, 2023

Conversation

binh-dam-ibigroup
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup commented May 12, 2023

Description

This PR makes map panning smoother when changing the viewed stop in the Stop Viewer (either by clicking a nearby stop in the main pane, or by clicking Stop Viewer from the map or itinerary leg in the narrative).

Basically, the ConnectedStopViewerOverlay component is competing with the stop fetching actions, causing hiccups in the map animation when switching stops.

PR Checklist

  • [na] Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • [na] Are all languages supported (Internationalization/Localization)?
  • [na] Are appropriate Typescript types implemented?

Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

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

Thanks for finding this fix

Copy link
Contributor

@daniel-heppner-ibigroup daniel-heppner-ibigroup left a comment

Choose a reason for hiding this comment

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

Great find, thanks!

@binh-dam-ibigroup binh-dam-ibigroup merged commit 0cbb283 into dev May 16, 2023
@binh-dam-ibigroup binh-dam-ibigroup deleted the fix-stop-viewer-map-pan branch May 16, 2023 13:26
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.

3 participants