emiliorizzo/vue-d3-network

Touch Event Issue

lim-enhui opened this issue · 3 comments

the touch event trigger both the mouse and the touch event thus having 2 event called at once

screen shot 2018-05-28 at 11 16 47 am

recommending use v-hammer:tap and v-hammer:pan to remove complication https://github.com/bsdfzzzy/vue2-hammer

i did attempt to try modify the code but i am confused with how the emit is used and passed from svgRenderer to vue-d3-network then to the component that resides @node-click="nodeClick".. I will looking at some point of time later but now i will have to use an event bus to pipe the event when tap.

Notable: v-hammer:tap="onTap" . at the methods onTap(e) { console.log(e) } if you are going to edit some parts of the code.

Thanks for your report and suggestions.
Please reopen the issue if you need.
👍