mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-19 06:03:59 +00: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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user