Skip to content

Do not dispatch move event if no mouse move (#78)#79

Open
leplatrem wants to merge 1 commit intosimplegeo:masterfrom
makinacorpus:master
Open

Do not dispatch move event if no mouse move (#78)#79
leplatrem wants to merge 1 commit intosimplegeo:masterfrom
makinacorpus:master

Conversation

@leplatrem
Copy link

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

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

The panBy method is used by zoomBy, and the latter assumes that panBy will always dispatch an event. If that's not the case, then we'll need some additional logic in zoomBy to dispatch an event, or we'll need an internal panning method that does the pan but not the dispatch… So, it's a bit more complicated than this simple fix. :)

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for your feedback !
... you're right then, it is not as simple as it looked at first sight.

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.

3 participants