{
elementsSelectable={isSelectable}
nodesConnectable={isConnectable}
nodesDraggable={isDraggable}
+ zoomOnScroll={zoomOnScroll}
onConnect={onConnect}
>
@@ -67,6 +69,18 @@ const InteractionFlow = () => {
/>
+
+
+
);
diff --git a/src/container/GraphView/index.tsx b/src/container/GraphView/index.tsx
index cc939b2b..9758f65d 100644
--- a/src/container/GraphView/index.tsx
+++ b/src/container/GraphView/index.tsx
@@ -54,6 +54,7 @@ export interface GraphViewProps {
defaultZoom: number;
arrowHeadColor: string;
markerEndId?: string;
+ zoomOnScroll: boolean;
}
const GraphView = memo(
@@ -88,6 +89,7 @@ const GraphView = memo(
defaultZoom,
arrowHeadColor,
markerEndId,
+ zoomOnScroll,
}: GraphViewProps) => {
const zoomPane = useRef