Skip to content

Commit

Permalink
Always _handleViewUpdate() when flow/spread mode changes
Browse files Browse the repository at this point in the history
Even if it doesn't trigger a navigation that would call that.

Fixes zotero/zotero#3503
  • Loading branch information
AbeJellinek committed Nov 28, 2023
1 parent 27c54ac commit f3bca3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dom/epub/epub-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ class EPUBView extends DOMView<EPUBViewState, EPUBViewData> {
if (cfiBefore) {
this.navigate({ pageNumber: cfiBefore.toString() }, { skipNavStack: true, behavior: 'auto' });
}
this._handleViewUpdate();
}

setSpreadMode(spreadMode: SpreadMode) {
Expand All @@ -786,6 +787,7 @@ class EPUBView extends DOMView<EPUBViewState, EPUBViewData> {
if (cfiBefore) {
this.navigate({ pageNumber: cfiBefore.toString() }, { skipNavStack: true, behavior: 'auto' });
}
this._handleViewUpdate();
}

setFontFamily(fontFamily: string) {
Expand Down

0 comments on commit f3bca3e

Please sign in to comment.