Fix reader next chapter visibility detection
This commit is contained in:
@@ -334,7 +334,7 @@ export const getPreviousNextChapterVisibility = (
|
|||||||
const isPreviousChapterVisible = isPreviousChapterLoaded && !isPreviousChapterPreloading;
|
const isPreviousChapterVisible = isPreviousChapterLoaded && !isPreviousChapterPreloading;
|
||||||
|
|
||||||
const isNextChapterLoaded = !!chaptersToRender[chapterIndex - 1];
|
const isNextChapterLoaded = !!chaptersToRender[chapterIndex - 1];
|
||||||
const isNextChapterLastTrailingChapter = chapterIndex - 1 < 0;
|
const isNextChapterLastTrailingChapter = chapterIndex - 1 <= 0;
|
||||||
const isNextChapterPreloading = isNextChapterLastTrailingChapter && visibleChapters.isTrailingChapterPreloadMode;
|
const isNextChapterPreloading = isNextChapterLastTrailingChapter && visibleChapters.isTrailingChapterPreloadMode;
|
||||||
const isNextChapterVisible = isNextChapterLoaded && !isNextChapterPreloading;
|
const isNextChapterVisible = isNextChapterLoaded && !isNextChapterPreloading;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user