Skip to content

Conversation

klutvott123
Copy link
Member

Changes yMinLimit for 128x64 to be the same as for 212x64. Makes sense as they're the same height.
PreventsdrawScreen() from running when the main menu is visible. This function can change scrollPixelsY causing the scrolling to not work as it should on the main menu. Also no need to run it when on the main menu.
Removed the +1 from the currentLineY calculation. Adding 1 causes the text at the top of the page to be placed outside yMinLim and disappear.
Also corrected a limit error where it should be min instead of max.
Now it works just like on the other pages. Tested and works.

Makes it the same as for 212x64
Prevents it from interfering with scrollPixelsY causing scrolling to not work properly on the main menu. No need for it to run when the main menu is visible either.
1 should not be added to currentLineY. This places the text at the top of the screen outside yMinLim causing it to disappear. Also corrected an error where yMaxLim was used instead of yMinLim.
@mikeller mikeller added this to the 1.5 milestone Oct 27, 2019
@mikeller mikeller merged commit 38419b6 into betaflight:master Oct 30, 2019
@klutvott123 klutvott123 deleted the main-menu-scroll-fix branch November 15, 2019 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants