From f3bca3eb5018d383b3a76f1ea99e8508097e15dc Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 28 Nov 2023 14:40:07 -0500 Subject: [PATCH] Always _handleViewUpdate() when flow/spread mode changes Even if it doesn't trigger a navigation that would call that. Fixes zotero/zotero#3503 --- src/dom/epub/epub-view.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dom/epub/epub-view.ts b/src/dom/epub/epub-view.ts index 67c1c1e6..542f45df 100644 --- a/src/dom/epub/epub-view.ts +++ b/src/dom/epub/epub-view.ts @@ -769,6 +769,7 @@ class EPUBView extends DOMView { if (cfiBefore) { this.navigate({ pageNumber: cfiBefore.toString() }, { skipNavStack: true, behavior: 'auto' }); } + this._handleViewUpdate(); } setSpreadMode(spreadMode: SpreadMode) { @@ -786,6 +787,7 @@ class EPUBView extends DOMView { if (cfiBefore) { this.navigate({ pageNumber: cfiBefore.toString() }, { skipNavStack: true, behavior: 'auto' }); } + this._handleViewUpdate(); } setFontFamily(fontFamily: string) {