diff --git a/web/src/reader/reader.ts b/web/src/reader/reader.ts index c3b51c2..5fc5080 100644 --- a/web/src/reader/reader.ts +++ b/web/src/reader/reader.ts @@ -449,6 +449,13 @@ document.addEventListener("alpine:init", () => { this.book = this.view.book; this.isFixedLayout = this.view.isFixedLayout; if (this.isFixedLayout) { + // Manga/RTL comics: foliate's goLeft/goRight swap on book.dir === "rtl", + // but makeComicBook never sets dir. Apply it from metadata so RTL page + // turns (and spread ordering) read right-to-left. Reflowable EPUBs keep + // whatever direction foliate read from the OPF. + if (config.readingDirection === "rtl" && this.book.dir !== "rtl") { + this.book.dir = "rtl"; + } this.isPDF = (this.renderer as any).isPDF; this.renderer.addEventListener("zoom", () => { this.zoomPercent = this.renderer.zoomPercent;