mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Don't dispatch "pagerendered"-events on the *temporary* CSS-only zooming done when drawingDelay
is used (PR 15812 follow-up)
We shouldn't dispatch a "pagerendered"-event when doing *temporary* CSS-only zooming, but simply wait until the actual rendering is done. While I don't believe that this regression has caused any actual bugs, dispatching *duplicate* events is nonetheless inconsistent and should be fixed.
This commit is contained in:
parent
32964db6ef
commit
af8df207bb
1 changed files with 5 additions and 0 deletions
|
@ -616,6 +616,11 @@ class PDFPageView {
|
|||
hideTextLayer: postponeDrawing,
|
||||
});
|
||||
|
||||
if (postponeDrawing) {
|
||||
// The "pagerendered"-event will be dispatched once the actual
|
||||
// rendering is done, hence don't dispatch it here as well.
|
||||
return;
|
||||
}
|
||||
this.eventBus.dispatch("pagerendered", {
|
||||
source: this,
|
||||
pageNumber: this.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue