Skip to content

Commit

Permalink
ソング:シーケンサーの外で起こったmousemove、mouseupも拾うようにする (#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigprogramming authored Oct 25, 2024
1 parent 64e44dc commit 127bf8e
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 127bf8e

Please sign in to comment.