mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
always redraw grid on note length change
This commit is contained in:
parent
bcd747280c
commit
aa8eaf2e2b
5 changed files with 33 additions and 22 deletions
|
|
@ -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)); },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue