dash14 / v-network-graph

An interactive network graph visualization component for Vue 3
https://dash14.github.io/v-network-graph/
MIT License
495 stars 44 forks source link

Tapping on node on mobile does not select it #42

Closed violent-boomerang closed 2 years ago

violent-boomerang commented 2 years ago

Hello, I wanted to know, with node selection enabled, why on mobile/tablet "tapping" a node does not select the node itself.

Using the capture all exampe I can see that clicked and selected are not fired, but pointerdown, pointerup and many other node events are fired, and generally mobile seems to be well supported

Many thanks

dash14 commented 2 years ago

Hi @violent-boomerang,

Thank you very much for reporting! This was a bug.... It seems to have been contaminated when the event processing was revised to support dblclick in the past. Now recognizes click operations in mobile browsers, even with multi-touch. Please check it out. (v0.5.3)

Kind Regards,

violent-boomerang commented 2 years ago

great, it works. Many thanks, this is a great project

violent-boomerang commented 2 years ago

I am afraid some regression has been introduced with the fix, the coordinates translation example, that worked in previous rev, now is not working.