Squashing commits for zooming changes
This commit is contained in:
parent
8697c72aa2
commit
0f8f9deb0b
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user