docs: set prevent scrolling to false

This commit is contained in:
braks
2022-08-01 21:10:14 +02:00
committed by Braks
parent c4f9492a4f
commit 3f336a12af
3 changed files with 3 additions and 0 deletions
@@ -84,6 +84,7 @@ const { onPaneReady } = useVueFlow({
modelValue: elements.value,
zoomOnScroll: false,
panOnDrag: false,
preventScrolling: false,
})
onPaneReady((i) => emit('pane', i))
+1
View File
@@ -66,6 +66,7 @@ const { dimensions, onNodeClick, getNodes, fitView, getNode, getEdge, updateEdge
zoomOnScroll: false,
zoomOnDoubleClick: false,
zoomOnPinch: false,
preventScrolling: false,
elevateEdgesOnSelect: true,
})
+1
View File
@@ -34,6 +34,7 @@ const { onPaneReady, getNode, panOnDrag } = useVueFlow({
[-50, -150],
[500, 300],
],
preventScrolling: false,
})
onPaneReady((i) => emit('pane', i))