Skip to content

Adding an onRightClickGraph event. #419

@ArnaudRib

Description

@ArnaudRib

Is your feature request related to a problem? Please describe.
Hello there !
I was looking for a way to catch a right click event on the graph (not on a node), but I've noticed the event wasn't catched.
Following https://stackoverflow.com/a/31113000, the onContextMenu, or an equivalent, does not seem to be present on the tag in your source code.

Describe the solution you'd like
Being able to do a
<Graph ... onRightClickGraph={onRightClickGraph} ... />
or
<Graph ... onContextMenu={onRightClickGraph} ... />

Describe your use case
Being able to show a Menu on graph right click.
The event should be different from onRightClickNode, which should still work correctly by only triggering onRightClickNode.

Describe alternatives you've considered
Haven't found any alternative yet.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions