Just shift menu icons up 1 row when hit bottom (#1874)

This commit is contained in:
Mark Thompson 2024-02-10 02:21:35 -06:00 committed by GitHub
parent bbbf5a37c8
commit 367479d163
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@
* Copyright (C) 2014 Jared Boone, ShareBrained Technology, Inc.
* Copyright (C) 2016 Furrtek
* Copyright (C) 2019 Elia Yehuda (z4ziggy)
* Copyright (C) 2023 Mark Thompson
*
* This file is part of PortaPack.
*
@ -170,7 +171,7 @@ bool BtnGridView::set_highlighted(int32_t new_value) {
if (((uint32_t)new_value > offset) && ((new_value - offset) >= displayed_max)) {
// Shift BtnGridView up
highlighted_item = new_value;
offset = new_value - displayed_max + rows_;
offset += rows_;
update_items();
set_dirty();
} else if ((uint32_t)new_value < offset) {