We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45c5961 commit 4548021Copy full SHA for 4548021
.changeset/two-countries-brake.md
@@ -0,0 +1,5 @@
1
+---
2
+"@vue-flow/core": patch
3
4
+
5
+Emit `nodeClick` event when a node is dragged without exceeding the node drag threshold (i.e. no visible movement has happened)
packages/core/src/composables/useDrag.ts
@@ -228,6 +228,12 @@ export function useDrag(params: UseDragParams) {
228
229
const eventEnd = (event: UseDragEvent) => {
230
if (!dragStarted) {
231
+ const node = findNode(id)
232
233
+ if (node) {
234
+ emits.nodeClick({ node, event: event.sourceEvent })
235
+ }
236
237
return
238
}
239
0 commit comments