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

Allow alternative panning modes #16

Closed
cmdcolin opened this issue Jun 3, 2016 · 3 comments
Closed

Allow alternative panning modes #16

cmdcolin opened this issue Jun 3, 2016 · 3 comments

Comments

@cmdcolin
Copy link

cmdcolin commented Jun 3, 2016

I wasn't exactly sure if this is cytoscape.js-panzoom specific but I wanted to see if there was anyway to use touchpad scrolling to pan instead of as the zoom function.

Oftentimes I would like to pan quickly at a consistent zoom level, but I wasn't sure if there were options for that in cytoscape.js itself or if it could be added here

@cmdcolin
Copy link
Author

cmdcolin commented Aug 9, 2016

One "UI" idea for this would be to add a button that toggles "scrolling = zoom" or "scrolling = pan"

@maxkfranz
Copy link
Member

That would need to be implemented in the core lib.

@maxkfranz
Copy link
Member

It could be good in some contexts, but it can also conflict with the touchpad swipe to go back gesture in the browser...

Maybe it would be more universal to make a keyboard shortcut using cy.panBy() with something like Mousetrap.js?

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