always redraw grid on note length change

This commit is contained in:
🪞👃🪞 2025-04-23 09:05:34 +03:00
parent bcd747280c
commit aa8eaf2e2b
5 changed files with 33 additions and 22 deletions

View file

@ -232,9 +232,9 @@ impl Command<MidiEditor> for MidiEditCommand {
let note_len = state.note_len();
let time_zoom = state.time_zoom().get();
state.set_note_len(x);
if note_len / time_zoom != x / time_zoom {
//if note_len / time_zoom != x / time_zoom {
state.redraw();
}
//}
},
SetTimeCursor(x) => { state.set_time_pos(x); },
SetNoteCursor(note) => { state.set_note_pos(note.min(127)); },