Preserve scroll position during infinite scroll initial previous chapter render

This commit is contained in:
schroda
2025-05-02 17:28:21 +02:00
parent d603c614ef
commit e982b7c417
2 changed files with 120 additions and 5 deletions

View File

@@ -284,7 +284,11 @@ const BaseReaderViewer = forwardRef(
useReaderAutoScroll(isOverlayVisible, automaticScrolling);
useReaderPreserveScrollPosition(
scrollElementRef,
currentChapter?.id,
currentChapterIndex,
currentPageIndex,
chaptersToRender,
visibleChapters,
readingMode,
readingDirection,
setPageToScrollToIndex,