From 5b7f6caf9fd83c9107da8eaca11a031e91a5b63c Mon Sep 17 00:00:00 2001 From: hanlibin Date: Wed, 25 Oct 2023 10:34:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=A7=A3=E5=86=B3ctr=E5=8A=A0=E9=BC=A0?= =?UTF-8?q?=E6=A0=87=E7=A7=BB=E5=8A=A8=E6=B3=B3=E9=81=93=E5=9B=BE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hanlibin --- ide/src/trace/component/SpSystemTrace.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ide/src/trace/component/SpSystemTrace.ts b/ide/src/trace/component/SpSystemTrace.ts index bd4bac7e..904bf55c 100644 --- a/ide/src/trace/component/SpSystemTrace.ts +++ b/ide/src/trace/component/SpSystemTrace.ts @@ -1719,10 +1719,10 @@ export class SpSystemTrace extends BaseElement { ev.stopPropagation(); return; } + this.isMouseLeftDown = true; if (ev.ctrlKey) { ev.preventDefault(); - this.style.cursor = 'move'; - this.isMouseLeftDown = true; + this.style.cursor = 'move'; this.mouseCurrentPosition = ev.clientX; return; } -- Gitee From afb7b7635eee5f13ba16bb9fa6d8b8acdee3b146 Mon Sep 17 00:00:00 2001 From: hanlibin Date: Wed, 25 Oct 2023 10:45:19 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A7=A3=E5=86=B3ctr=E5=8A=A0=E9=BC=A0?= =?UTF-8?q?=E6=A0=87=E7=A7=BB=E5=8A=A8=E6=B3=B3=E9=81=93=E5=9B=BE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hanlibin --- ide/src/trace/component/SpSystemTrace.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ide/src/trace/component/SpSystemTrace.ts b/ide/src/trace/component/SpSystemTrace.ts index 904bf55c..06bc3c7b 100644 --- a/ide/src/trace/component/SpSystemTrace.ts +++ b/ide/src/trace/component/SpSystemTrace.ts @@ -1775,11 +1775,12 @@ export class SpSystemTrace extends BaseElement { ev.stopPropagation(); return; } + + this.isMouseLeftDown = false; if (ev.ctrlKey) { ev.preventDefault(); this.offsetMouse = 0; - this.mouseCurrentPosition = 0; - this.isMouseLeftDown = false; + this.mouseCurrentPosition = 0; this.style.cursor = 'default'; return; } -- Gitee