fix(core): use default cursor and apply drag cursor if node is draggable

This commit is contained in:
braks
2024-02-21 23:27:01 +01:00
committed by Braks
parent df591b1295
commit c48d3c9be3
2 changed files with 10 additions and 4 deletions
@@ -192,6 +192,7 @@ const NodeWrapper = defineComponent({
{
[noPanClassName.value]: props.draggable,
dragging: dragging?.value,
draggable: props.draggable,
selected: node.value.selected,
selectable: props.selectable,
parent: node.value.isParent,
+9 -4
View File
@@ -153,11 +153,16 @@
pointer-events: all;
transform-origin: 0 0;
box-sizing: border-box;
cursor: grab;
cursor: default;
&.dragging {
cursor: grabbing;
}
&.draggable {
cursor: grab;
pointer-events: all;
&.dragging {
cursor: grabbing;
}
}
}
.vue-flow__nodesselection {