diff --git a/web/viewer.js b/web/viewer.js index 1c3d9c79c..f561ed12e 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -437,6 +437,10 @@ var PDFView = { this.switchSidebarView('outline'); } + // Reset the current scale, as otherwise the page's scale might not get + // updated if the zoom level stayed the same. + this.currentScale = 0; + this.currentScaleValue = null; if (this.initialBookmark) { this.setHash(this.initialBookmark); this.initialBookmark = null;