Fix reader next chapter visibility detection

This commit is contained in:
schroda
2025-05-05 00:54:41 +02:00
parent c82110b29d
commit eb23f74a40

View File

@@ -334,7 +334,7 @@ export const getPreviousNextChapterVisibility = (
const isPreviousChapterVisible = isPreviousChapterLoaded && !isPreviousChapterPreloading;
const isNextChapterLoaded = !!chaptersToRender[chapterIndex - 1];
const isNextChapterLastTrailingChapter = chapterIndex - 1 < 0;
const isNextChapterLastTrailingChapter = chapterIndex - 1 <= 0;
const isNextChapterPreloading = isNextChapterLastTrailingChapter && visibleChapters.isTrailingChapterPreloadMode;
const isNextChapterVisible = isNextChapterLoaded && !isNextChapterPreloading;