Ignore new scale value if it's the same as before
This commit is contained in:
parent
997e094bdc
commit
db627c4082
@ -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…
x
Reference in New Issue
Block a user