From 3d4947631a7c7fb8a2bd8d5cf40ef734e955fdf9 Mon Sep 17 00:00:00 2001 From: lifw Date: Mon, 27 Mar 2023 06:34:50 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E7=9B=B4=E6=8E=A5=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=BB=9A=E8=BD=AE=E7=9A=84=E6=94=BE=E5=A4=A7=E7=BC=A9?= =?UTF-8?q?=E5=B0=8F=EF=BC=8C=E6=95=88=E6=9E=9C=E5=A4=AA=E5=B7=AE=EF=BC=8C?= =?UTF-8?q?=E4=BB=85=E4=BB=85=E6=94=AF=E6=8C=81ctrl+=E6=BB=9A=E8=BD=AE?= =?UTF-8?q?=E5=BD=A2=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Detection/index.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/pages/Detection/index.tsx b/src/pages/Detection/index.tsx index f4a33b04e..0be9069f8 100644 --- a/src/pages/Detection/index.tsx +++ b/src/pages/Detection/index.tsx @@ -485,11 +485,13 @@ const Page = () => { }; const handleWheel = (event) => { const deta = event.deltaY; - if (deta > 0) { - scale.change(-0.1); - } - if (deta < 0) { - scale.change(0.1); + if (event.ctrlKey) { + if (deta > 0) { + scale.change(-0.05); + } + if (deta < 0) { + scale.change(0.05); + } } }; const onHideLabel = (change: boolean, id: number) => {