Browse Source

Ignore new scale value if it's the same as before

Julian Viereck 14 years ago
parent
commit
db627c4082
  1. 3
      web/viewer.js

3
web/viewer.js

@ -149,6 +149,9 @@ var PDFView = {
initialBookmark: document.location.hash.substring(1), initialBookmark: document.location.hash.substring(1),
setScale: function pdfViewSetScale(val, resetAutoSettings) { setScale: function pdfViewSetScale(val, resetAutoSettings) {
if (val == this.currentScale)
return;
var pages = this.pages; var pages = this.pages;
for (var i = 0; i < pages.length; i++) for (var i = 0; i < pages.length; i++)
pages[i].update(val * kCssUnits); pages[i].update(val * kCssUnits);

Loading…
Cancel
Save