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 double click not keeping track with event position #1271

Merged
merged 4 commits into from
Jun 15, 2022

Conversation

ibrierley
Copy link
Collaborator

Don't merge this just yet, but is for testing currently. Fixes #1265

Previously double click wouldn't zoom to correct position. This should fix that, and refactors mousewheel zoom to use the same code now, in a separate method.

Also slight change is the animation easing on double click. There is a bug (existing before this change), where a zoom doesn't follow the correct linear path. The easing doesn't help here, so keeping it simple, so it's slightly less obvious, but ideally needs a fix in the future.

@ibrierley ibrierley mentioned this pull request Jun 10, 2022
12 tasks
@JosefWN
Copy link
Contributor

JosefWN commented Jun 13, 2022

Nice! Looks correct to me, I can zoom and double-tap my way in/out and still remain in the same geographical position relative to the cursor.

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. Tested and works for me.

@JaffaKetchup JaffaKetchup merged commit 1dfc30e into fleaflet:master Jun 15, 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] Zoom issue on double click
3 participants