Clicking is easily mistaken for dragging. #1825
-
Currently, if I use the left mouse button to click on a node and accidentally move the mouse slightly after pressing the left button, VueFlow will interpret this action as dragging. Is it possible to add a check so that when the drag distance is less than a certain threshold, it is treated as a click rather than a drag? |
Beta Was this translation helpful? Give feedback.
Answered by
bcakmakoglu
Apr 23, 2025
Replies: 1 comment 3 replies
-
There already is a prop for that: https://vueflow.dev/typedocs/interfaces/FlowProps.html#nodedragthreshold |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
bcakmakoglu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There already is a prop for that: https://vueflow.dev/typedocs/interfaces/FlowProps.html#nodedragthreshold