mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Round the scale value displayed by the viewBookmark button to two decimal places
This commit is contained in:
parent
19485c34c8
commit
4ee2c96503
1 changed files with 2 additions and 2 deletions
|
@ -1745,8 +1745,8 @@ function updateViewarea() {
|
|||
|
||||
var currentScale = PDFView.currentScale;
|
||||
var currentScaleValue = PDFView.currentScaleValue;
|
||||
var normalizedScaleValue = currentScaleValue == currentScale ?
|
||||
currentScale * 100 : currentScaleValue;
|
||||
var normalizedScaleValue = currentScaleValue === currentScale ?
|
||||
Math.round(currentScale * 10000) / 100 : currentScaleValue;
|
||||
|
||||
var pageNumber = firstPage.id;
|
||||
var pdfOpenParams = '#page=' + pageNumber;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue