Skip to content

Commit

Permalink
シーケンサーの外で起こったmousemove、mouseupイベントも拾うようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
sigprogramming committed Oct 25, 2024
1 parent d7087ef commit 2b0e823
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Sing/ScoreSequencer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
}"
aria-label="シーケンサ"
@mousedown="onMouseDown"
@mousemove="onMouseMove"
@mouseup="onMouseUp"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
@wheel="onWheel"
Expand Down Expand Up @@ -1399,6 +1397,8 @@ onActivated(() => {
});
document.addEventListener("keydown", handleKeydown);
window.addEventListener("mousemove", onMouseMove);
window.addEventListener("mouseup", onMouseUp);
});
// リスナー解除
Expand All @@ -1408,6 +1408,8 @@ onDeactivated(() => {
});
document.removeEventListener("keydown", handleKeydown);
window.removeEventListener("mousemove", onMouseMove);
window.removeEventListener("mouseup", onMouseUp);
});
// コンテキストメニュー
Expand Down

0 comments on commit 2b0e823

Please sign in to comment.