Skip to content

Commit 86998fa

Browse files
authored
Merge pull request #210 from klutvott123/scroll-improvement
Scroll improvement
2 parents f022976 + 2b1208f commit 86998fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SCRIPTS/BF/ui.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ local function drawScreen()
180180
local currentLineY = Page.fields[currentLine].y
181181
local screen_title = Page.title
182182
drawScreenTitle("Betaflight / "..screen_title)
183-
if currentLine == 1 then
183+
if currentLineY <= Page.fields[1].y then
184184
scrollPixelsY = 0
185185
elseif currentLineY - scrollPixelsY <= yMinLim then
186186
scrollPixelsY = currentLineY - yMinLim

0 commit comments

Comments
 (0)