Skip to content

Commit

Permalink
Update src/sing/stateMachine/sequencerStateMachine.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Hiroshiba <[email protected]>
  • Loading branch information
sigprogramming and Hiroshiba authored Jan 3, 2025
1 parent 65a05af commit fd475ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sing/stateMachine/sequencerStateMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ class ResizeNoteLeftState implements IState<State, Input, Context> {
const position = Math.min(noteEndPos - snapTicks, notePos + movingTicks);
const duration = noteEndPos - position;

if (note.position !== position && note.duration !== duration) {
if (note.position !== position || note.duration !== duration) {
editedNotes.set(note.id, { ...note, position, duration });
}
}
Expand Down

0 comments on commit fd475ca

Please sign in to comment.