fix(rtl): fix page navigation for Arabic books (#3817)

* fix(rtl): fix page navigation for Arabic books

* fix(rtl): unified navigation handlers for rtl and ltr

---------

Co-authored-by: Huang Xin <chrox.huang@gmail.com>
This commit is contained in:
Lex Moulton
2026-04-10 05:54:30 -04:00
committed by GitHub
parent c6daf72da9
commit 23d5f3363d
6 changed files with 28 additions and 63 deletions
@@ -55,7 +55,7 @@ export const viewPagination = (
) => {
if (!view || !viewSettings) return;
const renderer = view.renderer;
if (view.book.dir === 'rtl') {
if (viewSettings.rtl) {
side = swapLeftRight(side);
}
if (renderer.scrolled) {