pan and zoom during workflow execution (#24254)

This commit is contained in:
znn 2025-10-10 14:37:25 +05:30 committed by GitHub
parent a90b60c36f
commit 65b832c46c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -412,10 +412,10 @@ export const Workflow: FC<WorkflowProps> = memo(({
nodesFocusable={!nodesReadOnly} nodesFocusable={!nodesReadOnly}
edgesFocusable={!nodesReadOnly} edgesFocusable={!nodesReadOnly}
panOnScroll={false} panOnScroll={false}
panOnDrag={controlMode === ControlMode.Hand && !workflowReadOnly} panOnDrag={controlMode === ControlMode.Hand}
zoomOnPinch={!workflowReadOnly} zoomOnPinch={true}
zoomOnScroll={!workflowReadOnly} zoomOnScroll={true}
zoomOnDoubleClick={!workflowReadOnly} zoomOnDoubleClick={true}
isValidConnection={isValidConnection} isValidConnection={isValidConnection}
selectionKeyCode={null} selectionKeyCode={null}
selectionMode={SelectionMode.Partial} selectionMode={SelectionMode.Partial}