From 127bf8e83db0813ae8a2fcc73fa37f8b4b787630 Mon Sep 17 00:00:00 2001 From: Sig <62321214+sigprogramming@users.noreply.github.com> Date: Sat, 26 Oct 2024 03:15:20 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=BD=E3=83=B3=E3=82=B0=EF=BC=9A=E3=82=B7?= =?UTF-8?q?=E3=83=BC=E3=82=B1=E3=83=B3=E3=82=B5=E3=83=BC=E3=81=AE=E5=A4=96?= =?UTF-8?q?=E3=81=A7=E8=B5=B7=E3=81=93=E3=81=A3=E3=81=9Fmousemove=E3=80=81?= =?UTF-8?q?mouseup=E3=82=82=E6=8B=BE=E3=81=86=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=99=E3=82=8B=20(#2317)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Sing/ScoreSequencer.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Sing/ScoreSequencer.vue b/src/components/Sing/ScoreSequencer.vue index 13e7bdb82d..6005148ab2 100644 --- a/src/components/Sing/ScoreSequencer.vue +++ b/src/components/Sing/ScoreSequencer.vue @@ -22,8 +22,6 @@ }" aria-label="シーケンサ" @mousedown="onMouseDown" - @mousemove="onMouseMove" - @mouseup="onMouseUp" @mouseenter="onMouseEnter" @mouseleave="onMouseLeave" @wheel="onWheel" @@ -1399,6 +1397,8 @@ onActivated(() => { }); document.addEventListener("keydown", handleKeydown); + window.addEventListener("mousemove", onMouseMove); + window.addEventListener("mouseup", onMouseUp); }); // リスナー解除 @@ -1408,6 +1408,8 @@ onDeactivated(() => { }); document.removeEventListener("keydown", handleKeydown); + window.removeEventListener("mousemove", onMouseMove); + window.removeEventListener("mouseup", onMouseUp); }); // コンテキストメニュー