Squashing commits for zooming changes

This commit is contained in:
Tim van der Meij 2013-02-10 14:50:49 +01:00
parent 8697c72aa2
commit 0f8f9deb0b

View File

@ -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);
},