Closed mutzl closed 4 years ago
Finally solved it.
allowDrop: (node, { parent, index }, $event?: any) => {
if ($event.ctrlKey) {
$event.dataTransfer.dropEffect = 'copy';
} else if ($event.shiftKey) {
$event.dataTransfer.dropEffect = 'link';
} else {
$event.dataTransfer.dropEffect = 'move';
}
const canMoveCopyLink = true; // optional logic
return canMoveCopyLink;
},
How can I change the cursor while dragging a node?
The default looks like in the screenshot (with a small rectangle below), but I need to change that to a cursor with a plus sign for a copy operation.