vue-d3-network
vue-d3-network copied to clipboard
Drag raises click event
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?
Hi, thanks for reporting. Mmm no is not intended behavior. I will try to fix it soon.
Would you like me to fix this?
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

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 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.
Sorry @mihai-waydev , @danzimal I didn't have time to review this. I'll try to review and merge soon. Thanks.