Merge pull request #8531 from Snuffleupagus/rm-updatePosition
Remove `PDFPageView.updatePosition` since it's not actually necessary
This commit is contained in:
commit
209751346c
@ -255,15 +255,6 @@ class PDFPageView {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when moved in the parent's container.
|
||||
*/
|
||||
updatePosition() {
|
||||
if (this.textLayer) {
|
||||
this.textLayer.render(TEXT_LAYER_RENDER_DELAY);
|
||||
}
|
||||
}
|
||||
|
||||
cssTransform(target, redrawAnnotations = false) {
|
||||
// Scale target (canvas or svg), its wrapper and page container.
|
||||
let width = this.viewport.width;
|
||||
|
@ -452,14 +452,11 @@ var PDFViewer = (function pdfViewer() {
|
||||
this.viewer.textContent = '';
|
||||
},
|
||||
|
||||
_scrollUpdate: function PDFViewer_scrollUpdate() {
|
||||
_scrollUpdate() {
|
||||
if (this.pagesCount === 0) {
|
||||
return;
|
||||
}
|
||||
this.update();
|
||||
for (var i = 0, ii = this._pages.length; i < ii; i++) {
|
||||
this._pages[i].updatePosition();
|
||||
}
|
||||
},
|
||||
|
||||
_setScaleDispatchEvent: function pdfViewer_setScaleDispatchEvent(
|
||||
|
Loading…
x
Reference in New Issue
Block a user