Closed nbst84 closed 2 years ago
Hi @nbst84,
Is this intended? Would it be possible to have these events fired in all cases?
Yes, this behavior is intended. But I understood that this behavior is undesirable for your purpose. Since changing this behavior now could break applications that expect this behavior, I have considered a feasible way to achieve your purpose. Please see the example below. https://dash14.github.io/v-network-graph/examples/event.html#set-raw-event-handlers-to-the-node-elements (Please use v0.5.10 or later, due to some fixes.)
I hope this helps you. Best Regards,
Hi @dash14,
That is perfect - thank you so much for the quick update!
I noticed that the
node:pointerup
event will only fire if you pressed the mouse button on that same node. Meaning, if you have nodes A and B, and press down mouse button on node A, and then move to node B and release mouse button over node B, you will getnode:pointerdown
on node A but nonode:pointerup
at all.The
node:pointerover
will also not fire when hovering a node (B) while holding the mouse button if it was pressed over another node (A).Is this intended? Would it be possible to have these events fired in all cases?
I am trying to implement a way to create an edge between 2 nodes using the mouse (dragging from a node to an other) but this is preventing me from finding out what the destination node is (when releasing the mouse button).
Thanks