Fix page resume on reader chapter list selection of already visible chapter
In case the selected chapter was already visible, the page to resume did not get scrolled into view
This commit is contained in:
@@ -98,6 +98,8 @@ export const useReaderSetChaptersState = (
|
||||
READER_STATE_CHAPTERS_DEFAULTS.visibleChapters.lastTrailingChapterSourceOrder,
|
||||
isLeadingChapterPreloadMode: false,
|
||||
isTrailingChapterPreloadMode: false,
|
||||
// do not set "scrollIntoView" to "true" for the initial render
|
||||
scrollIntoView: !!prevState.initialChapter,
|
||||
}
|
||||
: prevState.visibleChapters,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user