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

Clear highlight by clicking on canvas #261

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HebeHH
Copy link

@HebeHH HebeHH commented Nov 10, 2023

Currently when Network is called with neighborhood_highlight=False, select_menu=True, the user is able to highlight neighboring nodes by clicking on a node. However, they can't clear that highlight by clicking on the canvas - they need to use the Reset Selection button.

This change allows users to clear the neighborhood highlight by clicking on the canvas as well.

(I also set a global highlightActive variable, because this seems necessary and at some points in testing I got an error without it. I didn't keep good track of what was causing that and can't reproduce it cleanly, but it seemed safer to keep it.)

Fixes #257

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.

highlightActive is not defined: Causes wierd jump of graph
1 participant