vue-d3-network icon indicating copy to clipboard operation
vue-d3-network copied to clipboard

Drag raises click event

Open afduarte opened this issue 7 years ago • 6 comments

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?

afduarte avatar Feb 15 '18 14:02 afduarte

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

emiliorizzo avatar May 29 '18 03:05 emiliorizzo

Would you like me to fix this?

Arcaster42 avatar Nov 05 '19 03:11 Arcaster42

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

goof03 avatar Dec 09 '19 09:12 goof03

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!

danzimal avatar Jul 20 '21 21:07 danzimal

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: https://github.com/emiliorizzo/vue-d3-network/pull/97, but make sure you test it well.

mihai-waydev avatar Aug 12 '21 13:08 mihai-waydev

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

emiliorizzo avatar Aug 30 '21 02:08 emiliorizzo