refactor(core): show regular pointer if pane isn't draggable

This commit is contained in:
braks
2022-10-29 20:54:20 +02:00
committed by Braks
parent 6ab79d54e4
commit 73dfca5f57
2 changed files with 5 additions and 2 deletions

View File

@@ -228,6 +228,6 @@ export default {
<Transform>
<slot />
</Transform>
<SelectionPane :class="{ dragging: isDragging }" />
<SelectionPane :class="{ dragging: isDragging, draggable: panOnDrag }" />
</div>
</template>

View File

@@ -15,7 +15,10 @@
.vue-flow__pane {
z-index: 1;
cursor: grab;
&.draggable {
cursor: grab;
}
&.dragging {
cursor: grabbing;