Fix type mismatch causing wrong scale value in the viewBookmark button
This commit is contained in:
parent
867c667690
commit
1c259ce806
@ -1745,7 +1745,7 @@ function updateViewarea() {
|
|||||||
|
|
||||||
var currentScale = PDFView.currentScale;
|
var currentScale = PDFView.currentScale;
|
||||||
var currentScaleValue = PDFView.currentScaleValue;
|
var currentScaleValue = PDFView.currentScaleValue;
|
||||||
var normalizedScaleValue = currentScaleValue === currentScale ?
|
var normalizedScaleValue = parseFloat(currentScaleValue) === currentScale ?
|
||||||
Math.round(currentScale * 10000) / 100 : currentScaleValue;
|
Math.round(currentScale * 10000) / 100 : currentScaleValue;
|
||||||
|
|
||||||
var pageNumber = firstPage.id;
|
var pageNumber = firstPage.id;
|
||||||
|
Loading…
Reference in New Issue
Block a user