fix: move slots outside of zoom pane

* avoids zoom gesture events bubbling to zoom pane and causing elements over flow to trigger zoom when they shouldn't

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-18 03:06:21 +01:00
parent 091ed3eeb4
commit 812a7da2fe
4 changed files with 18 additions and 8 deletions
@@ -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)
}
</script>