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

Drag raises click event #22

Open
afduarte opened this issue Feb 15, 2018 · 6 comments
Open

Drag raises click event #22

afduarte opened this issue Feb 15, 2018 · 6 comments

Comments

@afduarte
Copy link

Having a function passed as :node-click, it runs also when dragging (specifically, on dragend), which is fair enough because a drag might be considered a click, but not being able to cancel this doesn't really work for my use case.

Is this the intended behaviour?

@emiliorizzo
Copy link
Owner

Hi, thanks for reporting.
Mmm no is not intended behavior.
I will try to fix it soon.

@Arcaster42
Copy link

Would you like me to fix this?

@goof03
Copy link

goof03 commented Dec 9, 2019

Hi do you have a solution to this problem please ? i open a modal on click and on the first clicks d3-network become wild
image

@danzimal
Copy link

I see this issue is quite old. was there ever a solution to this?
Specifically, I too want to differentiate between a click and a drag.
thanks!

@mihai-waydev
Copy link

I see this issue is quite old. was there ever a solution to this?
Specifically, I too want to differentiate between a click and a drag.
thanks!

I tried doing this, here is my PR: #97, but make sure you test it well.

@emiliorizzo
Copy link
Owner

Sorry @mihai-waydev , @danzimal I didn't have time to review this. I'll try to review and merge soon. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants