fix(core): use default cursor and apply drag cursor if node is draggable
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user