Why does cy.one method executes several times #3066
Unanswered
mariela-plaza
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there, first of all, thanks for the amazing library!
I've been implementing CytoscapeJS in a project at work. The feature I am trying to implement now is that when a user clicks on an edge, the label of said edge gets toggled.
The issue that I see is that with the cy.one and cy.on events, the clicks that I've made on other parts of the graph are somewhat "saved" on the background, and when I finally click en edge all of the previous events get triggered, which is not what I want.
This is the code I have so far and a video of the behavior I have in the app:
cytoscape_tryout_edited.mp4
If someone has any suggestions as to how I can make this work I will appreciate it a lot!
Thanks to everyone, have a great day!
Beta Was this translation helpful? Give feedback.
All reactions