diff --git a/web/viewer.js b/web/viewer.js index 184528c43..e7b54043c 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -808,12 +808,14 @@ var PDFView = { zoomIn: function pdfViewZoomIn() { var newScale = (this.currentScale * DEFAULT_SCALE_DELTA).toFixed(2); + newScale = Math.ceil(newScale * 10) / 10; newScale = Math.min(MAX_SCALE, newScale); this.parseScale(newScale, true); }, zoomOut: function pdfViewZoomOut() { var newScale = (this.currentScale / DEFAULT_SCALE_DELTA).toFixed(2); + newScale = Math.floor(newScale * 10) / 10; newScale = Math.max(MIN_SCALE, newScale); this.parseScale(newScale, true); },