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

Fix ignore details.scale = 0 to prevent Unsupported operation: Infinity or NaN toInt #1388

Merged
merged 1 commit into from
Nov 19, 2022

Conversation

urusai88
Copy link
Contributor

Hello!
I found a bug while you trying to scale map with enabled scaffold drawer. If youll try to zoom a map when one of your finger stays on drawer gesture hook, ScaleUpdateDetails with come with ScaleUpdateDetails.scale = 0, and _getZoomForScale will return infinity zoom
You can try to make this moves on example app or just check the video

Screenrecorder-2022-10-18-19-10-15-11.1.mp4

@JaffaKetchup
Copy link
Member

Sorry for the delay @urusai88. We'll get round to reviewing this as it comes closer to a time for another release.

Thanks for your contribution, we really appreciate it!

@JaffaKetchup JaffaKetchup self-requested a review November 19, 2022 18:08
Copy link
Member

@JaffaKetchup JaffaKetchup left a comment

Choose a reason for hiding this comment

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

Untested, but LGTM. We can test more prior to release if necessary.

@JaffaKetchup JaffaKetchup merged commit 77cf06d into fleaflet:master Nov 19, 2022
@JaffaKetchup
Copy link
Member

Thanks for your contribution!

7h30n3 added a commit to OPENER-next/OpenStop that referenced this pull request Nov 28, 2022
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.

2 participants