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

Can't use onDoubleClick on ReactFlow component #4169

Closed
MetaCorp opened this issue Apr 17, 2024 · 1 comment
Closed

Can't use onDoubleClick on ReactFlow component #4169

MetaCorp opened this issue Apr 17, 2024 · 1 comment

Comments

@MetaCorp
Copy link

Describe the Bug

I want to add a node when the user double click the page. I tried using onDoubleClick on ReactFlow component, but the function never gets called.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Add onDoubleClick event callback to ReactFlow component

Expected behavior

When the user double click the Flow, the callback is called.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Edge
  • Version: 123.0.2420.81

Additional context

No response

@peterkogo
Copy link
Member

You have to set zoomOnDoubleClick={false} on the ReactFlow component for this to work.

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

No branches or pull requests

2 participants