Skip to content

Commit

Permalink
fix chapter menu scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
cadin committed Oct 2, 2023
1 parent ea67299 commit 0451e77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Panels.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Panels version 1.5.1
-- Panels version 1.5.2
-- https://cadin.github.io/panels/

import "CoreLibs/object"
Expand Down
2 changes: 2 additions & 0 deletions modules/Menus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ local function createChapterMenu(data)
if not isLastUnlockedSequence(selectedRow) then
local next = getNextUnlockedSequence(selectedRow)
chapterList:setSelectedRow(next)
chapterList:scrollToRow(next)
if Panels.Settings.playMenuSounds then
selectionSound:play()
end
Expand All @@ -363,6 +364,7 @@ local function createChapterMenu(data)
if not isFirstUnlockedSequence(selectedRow) then
local prev = getPreviousUnlockedSequence(selectedRow)
chapterList:setSelectedRow(prev)
chapterList:scrollToRow(prev)
if Panels.Settings.playMenuSounds then
selectionRevSound:play()
end
Expand Down

0 comments on commit 0451e77

Please sign in to comment.