mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Fix type mismatch causing wrong scale value in the viewBookmark button
This commit is contained in:
parent
867c667690
commit
1c259ce806
1 changed files with 1 additions and 1 deletions
|
@ -1745,7 +1745,7 @@ function updateViewarea() {
|
|||
|
||||
var currentScale = PDFView.currentScale;
|
||||
var currentScaleValue = PDFView.currentScaleValue;
|
||||
var normalizedScaleValue = currentScaleValue === currentScale ?
|
||||
var normalizedScaleValue = parseFloat(currentScaleValue) === currentScale ?
|
||||
Math.round(currentScale * 10000) / 100 : currentScaleValue;
|
||||
|
||||
var pageNumber = firstPage.id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue