mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Merge pull request #1023 from jviereck/viewer_default_fix
Reset scale value on opening new file
This commit is contained in:
commit
ce337fb2b3
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue