mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #6157 from Snuffleupagus/components-update-on-setScale-and-pagesRotation
Make sure that the document is rendered on zooming and rotation for `PDFViewer` instances using the `defaultRenderingQueue`
This commit is contained in:
commit
b35cbaa32c
1 changed files with 9 additions and 1 deletions
|
@ -218,6 +218,10 @@ var PDFViewer = (function pdfViewer() {
|
|||
}
|
||||
|
||||
this._setScale(this._currentScaleValue, true);
|
||||
|
||||
if (this.defaultRenderingQueue) {
|
||||
this.update();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -355,7 +359,7 @@ var PDFViewer = (function pdfViewer() {
|
|||
}
|
||||
},
|
||||
|
||||
_scrollUpdate: function () {
|
||||
_scrollUpdate: function PDFViewer_scrollUpdate() {
|
||||
if (this.pagesCount === 0) {
|
||||
return;
|
||||
}
|
||||
|
@ -404,6 +408,10 @@ var PDFViewer = (function pdfViewer() {
|
|||
}
|
||||
|
||||
this._setScaleDispatchEvent(newScale, newValue, preset);
|
||||
|
||||
if (this.defaultRenderingQueue) {
|
||||
this.update();
|
||||
}
|
||||
},
|
||||
|
||||
_setScale: function pdfViewer_setScale(value, noScroll) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue