Skip to content

Comments

Set lower default wheel zoom sensitivity for haplotype networks#934

Open
blankirigaya wants to merge 1 commit intomalariagen:masterfrom
blankirigaya:fix#504
Open

Set lower default wheel zoom sensitivity for haplotype networks#934
blankirigaya wants to merge 1 commit intomalariagen:masterfrom
blankirigaya:fix#504

Conversation

@blankirigaya
Copy link
Contributor

Closes #504

Exposes wheel_sensitivity as a parameter on plot_haplotype_network(), defaulting to 0.1 (vs cytoscape.js's default of 1). This prevents accidentally zooming out when scrolling over a haplotype network, while still allowing users to tune the sensitivity to their preference.
Made possible by the wheelSensitivity prop added in dash-cytoscape v1.0.0 (plotly/dash-cytoscape#203), which is already our minimum required version.

Changes:

Add wheel_sensitivity: float = 0.1 parameter to plot_haplotype_network()

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

Successfully merging this pull request may close these issues.

Dash set lower wheel zoom sensitivity

1 participant