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

CrossEditableZoom event firing fix - Use fresh zoom level value to determine if event should be fired #8473

Merged
merged 1 commit into from
Jun 21, 2021

Conversation

mbrzakovic
Copy link
Collaborator

@mbrzakovic mbrzakovic commented Apr 27, 2021

(solves #8472)

Sidepanel behavior is dependent on crossEditableZoom event which has small issue:

  • Map uses old zoom level value in zoomPan method to condition firing the abovementioned event.

Fix is simple: First transform the projection and then look into firing the event.

It should happen after projection is transformed.
@mbrzakovic
Copy link
Collaborator Author

This pr should also resolve small inconsistency with selected element animation (breathe) around cross Editable zoom.

@mbrzakovic mbrzakovic merged commit 83509f9 into openstreetmap:develop Jun 21, 2021
@mbrzakovic mbrzakovic deleted the 8472-crossEditableZoom branch June 21, 2021 18:01
@mbrzakovic mbrzakovic added this to the 2.20.0 milestone Jul 14, 2021
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.

1 participant