diff --git a/src/additional-components/Controls/Controls.vue b/src/additional-components/Controls/Controls.vue
index 998d9132..de9e5531 100644
--- a/src/additional-components/Controls/Controls.vue
+++ b/src/additional-components/Controls/Controls.vue
@@ -31,22 +31,22 @@ const isInteractive = computed(() => store.nodesDraggable && store.nodesConnecta
const mapClasses = ['vue-flow__controls']
const onZoomInHandler = () => {
- zoomIn?.()
+ zoomIn()
emit('zoom-in')
}
const onZoomOutHandler = () => {
- zoomOut?.()
+ zoomOut()
emit('zoom-out')
}
const onFitViewHandler = () => {
- fitView?.(props.fitViewParams)
+ fitView(props.fitViewParams)
emit('fit-view')
}
const onInteractiveChangeHandler = () => {
- store.setInteractive?.(!isInteractive.value)
+ store.setInteractive(!isInteractive.value)
emit('interaction-change', !isInteractive.value)
}
diff --git a/src/container/SelectionPane/SelectionPane.vue b/src/container/SelectionPane/SelectionPane.vue
index e4851a5a..9d92e82b 100644
--- a/src/container/SelectionPane/SelectionPane.vue
+++ b/src/container/SelectionPane/SelectionPane.vue
@@ -51,10 +51,17 @@ onMounted(() => {
useKeyPress(props.selectionKeyCode, (keyPressed) => (selectionKeyPresed.value = keyPressed))
})
+const userSelection = computed(() => selectionKeyPresed.value && (store.selectionActive || store.elementsSelectable))
+const nodesSelectionActive = computed(() => store.nodesSelectionActive)
+
+
-
-
-
+
+
+
diff --git a/src/container/VueFlow/VueFlow.vue b/src/container/VueFlow/VueFlow.vue
index 046ac1d2..53df4deb 100644
--- a/src/container/VueFlow/VueFlow.vue
+++ b/src/container/VueFlow/VueFlow.vue
@@ -186,8 +186,8 @@ const edgeTypes = computed(() => {
-
+