feat(options): add preventScrolling option

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-23 14:12:43 +01:00
parent 17f7e4b0e7
commit 46ecec5366
4 changed files with 20 additions and 8 deletions
+1
View File
@@ -54,6 +54,7 @@ export const initialState = (): FlowState => ({
[Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY],
[Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY],
],
preventScrolling: true,
zoomOnScroll: true,
zoomOnPinch: true,
zoomOnDoubleClick: true,