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

Zoom / move / fit animation fires bad moveend events #6466

Closed
drafu opened this issue Jan 9, 2019 · 3 comments
Closed

Zoom / move / fit animation fires bad moveend events #6466

drafu opened this issue Jan 9, 2019 · 3 comments

Comments

@drafu
Copy link

drafu commented Jan 9, 2019

'moveend' event fires after zoom animation ends, but animation handler does not break when we move map WHILE animation is still visualizing.

Quick example:

  1. Map initially in BBOX0
  2. map.fitbounds(BBOX1); // BBOX1 is close enough to BBOX0
  3. Map starts zooming / panning animation
  4. (While animation is still in process) map.fitbounds(BBOX2); // BBOX2 is distant, so no animation happens
  5. Triggers 'moveend' for BBOX2
  6. Timer for BBOX1 animation expires
  7. Triggers 'moveend' animation for BBOX1

This causes some troubles.

@IvanSanchez
Copy link
Member

Can you publish a fiddle/codepen/plunkr that displays this behaviour?

It's not clear why the moveend event for the BBOX2 fires if that animation doesn't happen.

@IvanSanchez
Copy link
Member

IvanSanchez commented Jan 11, 2019

Possibly related to (very old) #1289

@IvanSanchez
Copy link
Member

No more information has been provided, and more than a few weeks have passed. We'll assume this issue is no longer relevant and/or there is no interest to make a better report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants