scroll sequencer

This commit is contained in:
🪞👃🪞 2024-07-03 21:39:46 +03:00
parent 47b2c5da29
commit 7f3425fe04
3 changed files with 18 additions and 7 deletions

View file

@ -85,7 +85,11 @@ const KEYMAP: &'static [KeyBinding<App>] = keymap!(App {
}
},
2 => {
app.time_cursor = app.time_cursor.saturating_sub(1);
if app.entered {
app.time_cursor = app.time_cursor.saturating_sub(1);
} else {
app.time_start = app.time_start.saturating_sub(1);
}
Ok(true)
},
_ => Ok(false)
@ -106,7 +110,11 @@ const KEYMAP: &'static [KeyBinding<App>] = keymap!(App {
}
},
2 => {
app.time_cursor = app.time_cursor + 1;
if app.entered {
app.time_cursor = app.time_cursor + 1;
} else {
app.time_start = app.time_start + 1;
}
Ok(true)
},
_ => Ok(false)