retejs / rete

JavaScript framework for visual programming
https://retejs.org
MIT License
9.86k stars 647 forks source link

@mousedown.stop="" Doesn't work with vue-render-plugin #253

Closed limuyao closed 5 years ago

limuyao commented 5 years ago

Hi to all! Still study using Rete.js and return to the old question about prevent drag event: https://github.com/retejs/rete/issues/196

In alight you can stop an event propagation

<input @mousedown.stop="">

In vue-render-plugin there is the same "stopPropagation"

The solution doesn't work with vue-render-plugin. I use <input @mousedown.stop=""> but still can drag a node

Ni55aN commented 5 years ago

Since v1.1.0 a mouse events was changed with pointer events. Solution:

 @pointermove.stop=""
limuyao commented 5 years ago

Thank you Ni55aN! The @pointerdown.stop is working for me