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 pan mode drag delay #188

Merged
merged 1 commit into from Jan 18, 2016
Merged

Fix pan mode drag delay #188

merged 1 commit into from Jan 18, 2016

Conversation

mdtusz
Copy link
Contributor

@mdtusz mdtusz commented Jan 18, 2016

Fixes #177. The drag mode moveFn isn't changed when the mode is changed, but after the drag event itself, so the pan drag action wasn't visible until mouseup. There doesn't seem to be a good clean way to do this without repeating code, so I have just made a call to Fx.init. Because this is only on mode change, it shouldn't be an issue to run init again.

@etpinard
Copy link
Contributor

Beautiful. Thanks!

💃

mdtusz added a commit that referenced this pull request Jan 18, 2016
@mdtusz mdtusz merged commit f11f116 into master Jan 18, 2016
@mdtusz mdtusz deleted the pan-mode-drag-bug branch January 18, 2016 18:19
@mdtusz mdtusz changed the title Add init step when changing dragmode Fix pan mode drag delay Jan 19, 2016
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.

None yet

2 participants