fix: mouse scrolling zooming can not function anymore (#19160)

This commit is contained in:
Junjie.M
2025-04-30 16:57:48 +08:00
committed by GitHub
parent 7248057d11
commit 04aadbe19a
+1 -1
View File
@@ -316,7 +316,7 @@ export const Workflow: FC<WorkflowProps> = memo(({
nodesConnectable={!nodesReadOnly}
nodesFocusable={!nodesReadOnly}
edgesFocusable={!nodesReadOnly}
panOnScroll
panOnScroll={false}
panOnDrag={controlMode === ControlMode.Hand && !workflowReadOnly}
zoomOnPinch={!workflowReadOnly}
zoomOnScroll={!workflowReadOnly}