1
0
forked from me/IronOS

Remove the scroll indicator when scrolling menu

This commit is contained in:
Alvin Wong
2021-05-03 16:53:45 +08:00
parent 82c985d785
commit a27db526af
3 changed files with 33 additions and 1 deletions

View File

@@ -1086,7 +1086,7 @@ void gui_Menu(const menuitem *menu) {
uint8_t position = OLED_HEIGHT * currentScreen / scrollContentSize;
if (lastValue)
scrollBlink = !scrollBlink;
if (!lastValue || !scrollBlink)
if ((!lastValue || !scrollBlink) && !scrollingDown)
OLED::drawScrollIndicator(position, indicatorHeight);
} else {
// Draw description
@@ -1096,6 +1096,7 @@ void gui_Menu(const menuitem *menu) {
if (lcdRefresh) {
if (scrollingDown) {
OLED::maskScrollIndicatorOnOLED();
OLED::transitionScrollDown();
scrollingDown = false;
animOpenState = false;