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 f8e5341ac0
commit 6c9a9d344a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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}