Skip to content

Commit

Permalink
fixup! Render high-res partial page views when falling back to CSS zo…
Browse files Browse the repository at this point in the history
…om (bug 1492303)
  • Loading branch information
nicolo-ribaudo committed Feb 5, 2025
1 parent bc7e568 commit db51d7f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/display/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1544,8 +1544,6 @@ class PDFPageProxy {
intentState,
reason: error instanceof Error ? error : new Error(error),
});

internalRenderTask.task.onError?.(error);
} else {
internalRenderTask.capability.resolve();
}
Expand Down Expand Up @@ -3302,7 +3300,7 @@ class RenderTask {
/**
* A function that will be synchronously called when the rendering tasks
* finishes with an error (either because of an actual error, or because the
* rendering is cancelled)
* rendering is cancelled).
*
* @type {function}
* @param {Error} error
Expand Down Expand Up @@ -3468,13 +3466,13 @@ class InternalRenderTask {
}
InternalRenderTask.#canvasInUse.delete(this._canvas);

this.callback(
error ||
new RenderingCancelledException(
`Rendering cancelled, page ${this._pageIndex + 1}`,
extraDelay
)
error ||= new RenderingCancelledException(
`Rendering cancelled, page ${this._pageIndex + 1}`,
extraDelay
);
this.callback(error);

this.task.onError?.(error);
}

operatorListChanged() {
Expand Down

0 comments on commit db51d7f

Please sign in to comment.