fix: decrease zoom sensitivity on network view

This commit is contained in:
James Graham
2021-09-08 14:38:55 +01:00
parent 40c138de00
commit a66d7d407c

View File

@@ -97,7 +97,8 @@ function get_network() {
// See https://js.cytoscape.org/ for documentation
cy = cytoscape({
container: document.getElementById('cy'),
style: network_style
style: network_style,
wheelSensitivity: 0.2
});
// Add pan + zoom widget with cytoscape-panzoom