plotly / dash-cytoscape

Interactive network visualization in Python and Dash, powered by Cytoscape.js
https://dash.plot.ly/cytoscape
MIT License
605 stars 120 forks source link

Dash Cytoscape: control the scroll wheel sensitivity for zooming #97

Closed ZhabizGIT closed 9 months ago

ZhabizGIT commented 4 years ago

Hello,

I need to control the scroll wheel sensitivity to zoom on canvas and change the scale of graphs. I noticed that cytoscape.js and react-cytoscapejs have supported the wheel-sensitivity property in their last updates to control the scroll to zoom in/out on graphs. I was wondering if there is a way to limit the fast scroll behavior in dash-cytoscape?

Thanks,

xhluca commented 4 years ago

Hi, it seems like this is a new feature added to Cytoscape.js. Could you let me know which prop you would like to control specifically?

ZhabizGIT commented 4 years ago

I didn't check the release-notes to see when it was added. The name of property is wheelSensitivity. It is described here: https://js.cytoscape.org/#init-opts/wheelSensitivity

I noticed react-cytoscapejs is also supported that from v1.2.0. So it would be great to have that here as well.

felipeboffnunes commented 4 years ago

I'm looking forward to have a custom wheelSensitivity too! Is there any delivery forecast for it?

ant1j commented 3 years ago

That would be super useful. Thanks

Rodolphe2005 commented 3 years ago

I'm also interested.

CaseGuide commented 3 years ago

Anyone figure out how to control wheelSensitivity in Plotly Dash?

This seems to be a popular request with the issue brought up in #41 and on the forum as well.