Browse Source

Replace magic scale value 0 with UNKNOWN_SCALE

Chris Peterson 11 years ago
parent
commit
81d5bd86ea
  1. 2
      web/viewer.js

2
web/viewer.js

@ -1213,7 +1213,7 @@ var PDFView = { @@ -1213,7 +1213,7 @@ var PDFView = {
setInitialView: function pdfViewSetInitialView(storedHash, scale) {
// 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.currentScale = UNKNOWN_SCALE;
this.currentScaleValue = null;
// When opening a new file (when one is already loaded in the viewer):
// Reset 'currentPageNumber', since otherwise the page's scale will be wrong

Loading…
Cancel
Save