-
Hi, I was wondering if anybody knew the reason why some of the event handlers for the core cytoscape js functionality are attached to the window object instead of the cytoscape container. Specifically for mouseup/down/move events. Is there a technical need for it? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
They're necessary for users to have gestures behave in the ways that they'd expect. |
Beta Was this translation helpful? Give feedback.
-
Hi @maxkfranz, thanks for the feedback. The nature of my question is that I'm trying to implement a popout functionality (window open / react portal) functionality with a cytoscapejs / react cytoscape. I have reached the point where most things work except the listeners (if I move them to the container it works). Based on your info, I think my approach should be that whenever I popout, I should clear the bindings and reapply them for it to work correctly. Is this a functionality that you would to see as a PR? Thanks, |
Beta Was this translation helpful? Give feedback.
They're necessary for users to have gestures behave in the ways that they'd expect.