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

This commit is contained in:
Julian Viereck 2011-12-22 19:02:52 +01:00
parent 997e094bdc
commit db627c4082

View File

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