Merge pull request #3854 from Snuffleupagus/round-viewBookmark-scale-value
Round the scale value displayed by the viewBookmark button to two decimal places
This commit is contained in:
commit
867c667690
@ -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…
Reference in New Issue
Block a user