mirror of https://github.com/langgenius/dify.git
feat(workflow): optimize workflow canvas pan and scroll behavior (#28250)
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
parent
605e543372
commit
a5d0e68675
|
|
@ -409,8 +409,8 @@ export const Workflow: FC<WorkflowProps> = memo(({
|
||||||
nodesConnectable={!nodesReadOnly}
|
nodesConnectable={!nodesReadOnly}
|
||||||
nodesFocusable={!nodesReadOnly}
|
nodesFocusable={!nodesReadOnly}
|
||||||
edgesFocusable={!nodesReadOnly}
|
edgesFocusable={!nodesReadOnly}
|
||||||
panOnScroll={false}
|
panOnScroll={controlMode === ControlMode.Pointer && !workflowReadOnly}
|
||||||
panOnDrag={controlMode === ControlMode.Hand}
|
panOnDrag={controlMode === ControlMode.Hand || [1]}
|
||||||
zoomOnPinch={true}
|
zoomOnPinch={true}
|
||||||
zoomOnScroll={true}
|
zoomOnScroll={true}
|
||||||
zoomOnDoubleClick={true}
|
zoomOnDoubleClick={true}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue