Fix leading page scroll preservation in continuous horizontal mode with RTL mode

This commit is contained in:
schroda
2026-04-13 16:10:46 +02:00
parent 6131b99169
commit ea31889969
2 changed files with 2 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- (**Reader**) Fix "auto webtoon mode" detection for manga source languages other than english and the current selected language
- (**Reader**) Fix the reader transition page previous chapter scanlator name showing the chapter name instead of the scanlator name
- (**Reader**) Fix opening the previous/next chapter in the continuous horizontal mode with inverted reading direction
- (**Reader**) Fix scroll preservation in continuous horizontal mode with righ to left reading direction
- (**Manga**) Fix dynamic manga page color theme not getting reset after leaving the manga page
## [20251230.01] (r2937) - 2025-12-30

View File

@@ -208,7 +208,7 @@ const usePreserveOnLeadingPageRender = (scrollElementRef: RefObject<HTMLElement
return entry.target.offsetTop < top;
}
return Math.abs(entry.target.offsetLeft) < Math.abs(left);
return entry.target.offsetLeft < left;
});
const includesElementsBeforeScrollPosition = !!entriesBeforeScrollPosition.length;