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

Submit pull request to Leaflet that fixes issue where move event is not triggered during map "throws" and "panBy" operations #24

Open
nateirwin opened this issue Dec 19, 2012 · 0 comments
Labels

Comments

@nateirwin
Copy link
Contributor

This needs a bit more investigation. The event seems to fire at least a few times during pan animations, but it doesn't fire consistently enough to hook InfoBox repositions to. To put it scientifically, it "stutters" during the animation. The animation occurs in dom/PosAnimation.js (and presumably dos/PosAnimation.Timer.js for legacy browsers).

For now, NPMap (NPMap.Map.Leaflet) turns off inertia in the L.Map config and uses L.Map._rawPanBy when the InfoBox is displayed to work around this issue. If the InfoBox is not displayed, L.Map.panBy is used.

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

No branches or pull requests

1 participant