How to create a node exactly where mouse pointer is ? #1320
Answered
by
bcakmakoglu
gitHoussem
asked this question in
Q&A
-
Hello, I'm struggling to create a node where my mouse pointer is inside the vueflow viewport. The mouse positions I get from the onPaneClick are not the same as the positions of the nodes inside the viewport. I found that the created of reactflow answered this question here xyflow/xyflow#3112 I am wondering if vueflow has something equivalent to it ? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
bcakmakoglu
Feb 16, 2024
Replies: 1 comment 3 replies
-
Check out the DnD example: https://vueflow.dev/examples/dnd.html That should make it clear how to add a node at mouse position (using |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TL;DR: