mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Squashing commits for zooming changes
This commit is contained in:
parent
8697c72aa2
commit
0f8f9deb0b
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue