diff --git a/src/managers/default/index.js b/src/managers/default/index.js index dc80f7f..a1ee60d 100644 --- a/src/managers/default/index.js +++ b/src/managers/default/index.js @@ -492,6 +492,8 @@ class DefaultViewManager { if(next) { this.clear(); + // The new section may have a different writing-mode from the old section. Thus, we need to update layout. + this.updateLayout(); let forceRight = false; if (this.layout.name === "pre-paginated" && this.layout.divisor === 2 && next.properties.includes("page-spread-right")) { @@ -583,6 +585,8 @@ class DefaultViewManager { if(prev) { this.clear(); + // The new section may have a different writing-mode from the old section. Thus, we need to update layout. + this.updateLayout(); let forceRight = false; if (this.layout.name === "pre-paginated" && this.layout.divisor === 2 && typeof prev.prev() !== "object") {