Skip to content

Commit

Permalink
Use stored cursor to determine when to scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
mnemnion committed Mar 17, 2024
1 parent d3235c5 commit 5d60bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ToggleMenus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ function move_down!(m::ToggleMenu, cursor::Int, lastoption::Int=numoptions(m))
m.pageoffset += 1 # scroll page down
end
end
if cursor == lastselectable && scroll_wrap(m)
if m.cursor[] lastselectable && scroll_wrap(m)
# wrap to top
cursor = 1
m.pageoffset = 0
Expand Down

0 comments on commit 5d60bea

Please sign in to comment.