mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-13 04:02:23 -04:00
Wrote most of the Encoders TX app (lacks baseband module)
Fixed menu scroll glitch Added set_range to NumberField widget
This commit is contained in:
parent
e2218a0f32
commit
1b44b22419
9 changed files with 613 additions and 8 deletions
|
@ -152,7 +152,7 @@ bool MenuView::set_highlighted(const size_t new_value) {
|
|||
return false;
|
||||
}
|
||||
|
||||
if ((new_value - offset_ + 1) >= MENU_MAX) {
|
||||
if ((new_value > offset_) && ((new_value - offset_ + 1) >= MENU_MAX)) {
|
||||
// Shift MenuView up
|
||||
offset_ = new_value - MENU_MAX + 1;
|
||||
update_items();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue