From: Julian Viereck Date: Wed, 4 Jan 2012 08:24:09 +0000 (+0100) Subject: Reset scale value on opening new file X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=496e598813b1ab1e567d47d299d672a4963d2ee5;p=pdf.js.git Reset scale value on opening new file --- diff --git a/web/viewer.js b/web/viewer.js index 1c3d9c7..f561ed1 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;