mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Ignore new scale value if it's the same as before
This commit is contained in:
parent
997e094bdc
commit
db627c4082
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue