docs: set prevent scrolling to false

This commit is contained in:
braks
2022-07-30 16:38:43 +02:00
committed by Braks
parent c4f9492a4f
commit 3f336a12af
3 changed files with 3 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ const { onPaneReady } = useVueFlow({
modelValue: elements.value,
zoomOnScroll: false,
panOnDrag: false,
preventScrolling: false,
})
onPaneReady((i) => emit('pane', i))

View File

@@ -66,6 +66,7 @@ const { dimensions, onNodeClick, getNodes, fitView, getNode, getEdge, updateEdge
zoomOnScroll: false,
zoomOnDoubleClick: false,
zoomOnPinch: false,
preventScrolling: false,
elevateEdgesOnSelect: true,
})

View File

@@ -34,6 +34,7 @@ const { onPaneReady, getNode, panOnDrag } = useVueFlow({
[-50, -150],
[500, 300],
],
preventScrolling: false,
})
onPaneReady((i) => emit('pane', i))