fix(flow): preventScrolling missing in props definition

* remove console log from ZoomPane
* Add missing name to VueFlow

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-23 17:18:12 +01:00
parent 65250c224b
commit c286b3b7ff
2 changed files with 6 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ interface FlowProps extends FlowOptions {
selectionKeyCode?: KeyCode
multiSelectionKeyCode?: KeyCode
zoomActivationKeyCode?: KeyCode
preventScrolling?: boolean
snapToGrid?: boolean
snapGrid?: [number, number]
onlyRenderVisibleElements?: boolean
@@ -177,6 +178,11 @@ const transitionName = computed(() => {
return name
})
</script>
<script lang="ts">
export default {
name: 'VueFlow'
}
</script>
<template>
<div class="vue-flow">
<Transition :key="`vue-flow-transition-${store.$id}`" :name="transitionName">

View File

@@ -106,7 +106,6 @@ invoke(async () => {
if (props.panOnScroll && keyPress) {
d3s
?.on('wheel', (event: WheelEvent) => {
console.log('wheel')
if (noWheel(event)) return
event.preventDefault()
event.stopImmediatePropagation()