From fab609fdbb0b7bc0fb25992361d83375685173c5 Mon Sep 17 00:00:00 2001 From: dengqichen Date: Fri, 13 Dec 2024 12:11:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=A5=E5=85=B7=E6=A0=8F?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/Workflow/Definition/Design/index.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/pages/Workflow/Definition/Design/index.tsx b/frontend/src/pages/Workflow/Definition/Design/index.tsx index 23f721dc..6076e032 100644 --- a/frontend/src/pages/Workflow/Definition/Design/index.tsx +++ b/frontend/src/pages/Workflow/Definition/Design/index.tsx @@ -43,6 +43,18 @@ const WorkflowDesign: React.FC = () => { background: { color: '#f5f5f5', }, + mousewheel: { + enabled: true, + modifiers: ['ctrl', 'meta'], + factor: 1.1, + maxScale: 1.5, + minScale: 0.5, + }, + panning: { + enabled: true, + eventTypes: ['rightMouseDown'], + }, + preventDefaultContextMenu: true, }); // 显示/隐藏连接桩