Skip to content

Commit c48d3c9

Browse files
committed
fix(core): use default cursor and apply drag cursor if node is draggable
1 parent df591b1 commit c48d3c9

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

packages/core/src/components/Nodes/NodeWrapper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ const NodeWrapper = defineComponent({
192192
{
193193
[noPanClassName.value]: props.draggable,
194194
dragging: dragging?.value,
195+
draggable: props.draggable,
195196
selected: node.value.selected,
196197
selectable: props.selectable,
197198
parent: node.value.isParent,

packages/core/src/style.css

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,16 @@
153153
pointer-events: all;
154154
transform-origin: 0 0;
155155
box-sizing: border-box;
156-
cursor: grab;
156+
cursor: default;
157157

158-
&.dragging {
159-
cursor: grabbing;
160-
}
158+
&.draggable {
159+
cursor: grab;
160+
pointer-events: all;
161+
162+
&.dragging {
163+
cursor: grabbing;
164+
}
165+
}
161166
}
162167

163168
.vue-flow__nodesselection {

0 commit comments

Comments
 (0)