{
onNodeDragStart={onNodeDragStart}
onNodeDragStop={onNodeDragStop}
paneMoveable={paneMoveable}
+ onZoomPaneClick={captureZoomClick ? onZoomPaneClick : undefined}
>
@@ -116,6 +119,18 @@ const InteractionFlow = () => {
/>
+
+
+
);
diff --git a/src/container/GraphView/index.tsx b/src/container/GraphView/index.tsx
index 2b509c31..d252556d 100644
--- a/src/container/GraphView/index.tsx
+++ b/src/container/GraphView/index.tsx
@@ -39,6 +39,7 @@ export interface GraphViewProps {
onMove?: (flowTransform?: FlowTransform) => void;
onMoveStart?: (flowTransform?: FlowTransform) => void;
onMoveEnd?: (flowTransform?: FlowTransform) => void;
+ onZoomPaneClick?: () => void;
selectionKeyCode: number;
nodeTypes: NodeTypesType;
edgeTypes: EdgeTypesType;
@@ -100,6 +101,7 @@ const GraphView = ({
zoomOnScroll,
zoomOnDoubleClick,
paneMoveable,
+ onZoomPaneClick,
}: GraphViewProps) => {
const zoomPane = useRef