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

An option to control speed of auto pan #1

Closed
ugurdogrusoz opened this issue Aug 10, 2016 · 6 comments
Closed

An option to control speed of auto pan #1

ugurdogrusoz opened this issue Aug 10, 2016 · 6 comments
Assignees

Comments

@ugurdogrusoz
Copy link
Contributor

Can we add an option to control the speed of auto panning?

@metincansiper
Copy link
Collaborator

metincansiper commented Aug 12, 2016

We have no variable to control the speed of auto panning. On node drag we check if any side of the node exceed any side of canvas bounds and if it exceeds we calculate extents of that exceed and pan the core by that extents.

@ugurdogrusoz
Copy link
Contributor Author

We can add a multiplier (defaulting to 1.0) to control the extent amount though, right?

@metincansiper
Copy link
Collaborator

metincansiper commented Aug 12, 2016

@ugurdogrusoz Do you mean we can multiply the calculated extends with this multiplier and then pan by the multiplication? I think that I can add such an option. Do you have a suggestion for the name of this option?

@ugurdogrusoz
Copy link
Contributor Author

I think speed would be a good name

@metincansiper
Copy link
Collaborator

@ugurdogrusoz I added 'speed' option as discussed in this issue. If there is no problem with this I can release new version.

@ugurdogrusoz
Copy link
Contributor Author

Works like a charm

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

No branches or pull requests

2 participants