mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Reset scale value on opening new file
This commit is contained in:
parent
219a60175c
commit
496e598813
1 changed files with 4 additions and 0 deletions
|
@ -437,6 +437,10 @@ var PDFView = {
|
||||||
this.switchSidebarView('outline');
|
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) {
|
if (this.initialBookmark) {
|
||||||
this.setHash(this.initialBookmark);
|
this.setHash(this.initialBookmark);
|
||||||
this.initialBookmark = null;
|
this.initialBookmark = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue