enable pan by fingers (#18775)

This commit is contained in:
crazywoola 2025-04-25 16:36:54 +08:00 committed by GitHub
parent a575fbca94
commit a5e6a0dc0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -316,6 +316,7 @@ export const Workflow: FC<WorkflowProps> = memo(({
nodesConnectable={!nodesReadOnly}
nodesFocusable={!nodesReadOnly}
edgesFocusable={!nodesReadOnly}
panOnScroll
panOnDrag={controlMode === ControlMode.Hand && !workflowReadOnly}
zoomOnPinch={!workflowReadOnly}
zoomOnScroll={!workflowReadOnly}