vertical scroll sequencer, pt.4

This commit is contained in:
🪞👃🪞 2024-10-28 23:41:19 +02:00
parent d1c892a235
commit 6665921de3
2 changed files with 12 additions and 4 deletions

View file

@ -113,7 +113,15 @@ impl Handle<Tui> for PhraseEditor<Tui> {
false => { self.note_axis.write().unwrap().start_dec(1); },
},
key!(KeyCode::Down) => match self.entered {
true => { self.note_axis.write().unwrap().point_inc(1); },
true => {
let mut axis = self.note_axis.write().unwrap();
axis.point_inc(1);
if let Some(point) = axis.point {
if point > 73 {
axis.point = Some(73);
}
}
},
false => { self.note_axis.write().unwrap().start_inc(1); },
},
key!(KeyCode::Left) => {