Replies: 1 comment
-
What would it mean to zoom about a point while having the panning immutable? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I would like to "disable" panning when the zoom is below a specific level.
I tried using
cy.panningEnabled(false)
but it also disable the zoom. (I just want to prevent panning but let the user being able to zoom).I thought about doing this with a
return
in on("pan") event:But it doesn't work, the panning action is still executed.
Any ideas?
I opened a stackoverflow question about it here: https://stackoverflow.com/questions/70787931/disable-panning-when-the-zoom-is-below-a-specific-level-in-cytoscape-js
@maxkfranz any idea?
Beta Was this translation helpful? Give feedback.
All reactions