Reader preserve current page on reader mode change (#906)
* Reader: Re-scroll on reader mode change * Simplify reading mode restore https://github.com/Suwayomi/Suwayomi-WebUI/pull/906#discussion_r2009147119 Co-authored-by: schroda <50052685+schroda@users.noreply.github.com> * Move effect as per suggestion Co-authored-by: schroda <50052685+schroda@users.noreply.github.com> --------- Co-authored-by: schroda <50052685+schroda@users.noreply.github.com>
This commit is contained in:
@@ -260,10 +260,13 @@ const BaseReaderViewer = forwardRef(
|
||||
scrollElementRef,
|
||||
currentChapter?.id,
|
||||
currentChapterIndex,
|
||||
currentPageIndex,
|
||||
chaptersToRender,
|
||||
visibleChapters,
|
||||
readingMode,
|
||||
isContinuousReadingModeActive,
|
||||
readingDirection,
|
||||
setPageToScrollToIndex,
|
||||
);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user