Skip to content

Commit

Permalink
右クリックでの選択やノートバークリックで選択の処理を切り戻す
Browse files Browse the repository at this point in the history
  • Loading branch information
romot-co committed Nov 24, 2024
1 parent 700f26c commit 27ec367
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/components/Sing/ScoreSequencer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1218,15 +1218,9 @@ const onNoteBarMouseDown = (event: MouseEvent, note: Note) => {
const mouseButton = getButton(event);
if (mouseButton === "LEFT_BUTTON") {
if (isOnCommandOrCtrlKeyDown(event)) {
// CtrlまたはCommandキーが押されている場合、ノートを追加選択
void store.actions.SELECT_NOTES({ noteIds: [note.id] });
} else if (!selectedNoteIds.value.has(note.id)) {
// クリックしたノートが選択の場合、そのノートのみを選択
void selectOnlyThis(note);
}
// 選択状態の変更が完了した後でプレビューを開始
startPreview(event, "MOVE_NOTE", note);
} else if (!selectedNoteIds.value.has(note.id)) {
selectOnlyThis(note);
}
};
Expand Down

0 comments on commit 27ec367

Please sign in to comment.