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 for 1373, where bounds doesn't get updated after a mapController … #1374

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

ibrierley
Copy link
Contributor

For #1373

I think setState gets called, but the onPositionChanged gets called before _bounds is updated (inside build). I've also added an extra check for a valid bounds check to be called on a test new bounds (we don't want to update _bounds if the new position is erm out of bounds).

@JaffaKetchup
Copy link
Member

If you're happy with this, I'll just approve it. Or I can test it tomorrow (but I haven't been keeping up with the conversation).

@ibrierley
Copy link
Contributor Author

Give it a day anyway, in case someone spots a flaw.

@JaffaKetchup
Copy link
Member

@ibrierley You happy for this to be merged?

@ibrierley
Copy link
Contributor Author

Yes, lets update I guess, and fix if anyone screams.

@JaffaKetchup JaffaKetchup self-requested a review October 11, 2022 06:52
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.

LGTM. Thanks!

@JaffaKetchup JaffaKetchup merged commit cb84337 into fleaflet:master Oct 11, 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.

[BUG] when onPositionChanged is called because of controller.move the position is before the move
2 participants