Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

pan and zoom during workflow execution (#24254)

znn65b832c46c52
diff --git a/web/app/components/workflow/index.tsx b/web/app/components/workflow/index.tsx
index 75c4d513905..b289cafefd7 100644
--- a/web/app/components/workflow/index.tsx
+++ b/web/app/components/workflow/index.tsx
@@ -412,10 +412,10 @@ export const Workflow: FC<WorkflowProps> = memo(({
nodesFocusable={!nodesReadOnly}
edgesFocusable={!nodesReadOnly}
panOnScroll={false}
- panOnDrag={controlMode === ControlMode.Hand && !workflowReadOnly}
- zoomOnPinch={!workflowReadOnly}
- zoomOnScroll={!workflowReadOnly}
- zoomOnDoubleClick={!workflowReadOnly}
+ panOnDrag={controlMode === ControlMode.Hand}
+ zoomOnPinch={true}
+ zoomOnScroll={true}
+ zoomOnDoubleClick={true}
isValidConnection={isValidConnection}
selectionKeyCode={null}
selectionMode={SelectionMode.Partial}