Replies: 1 comment 1 reply
-
|
Alas, no, you cannot switch the "active" element mid-drag. In your case I'd simply bind my own Roughly sth like this const altKeyPressed = useKeyPress('Alt');
function onDragStart() {
// ...
}
// CustomNode.vue
<div style="position: relative">
<div v-if="altKeyPressed" style="position: absolute; inset: 0" @dragstart="onDragStart" />
...
</div>the concrete implementation + creation of a "ghost" node is up to you - either add a node using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
I needed a method to switch a node during a drag operation, as I'm implementing node duplication via Alt+Drag. Is there a solution?
Beta Was this translation helpful? Give feedback.
All reactions