mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Merge pull request #10202 from Snuffleupagus/issue-10200
Attempt to clean-up/restore pending rendering operations on `RenderTask.cancel` (issue 10200)
This commit is contained in:
commit
ec76aa531e
1 changed files with 3 additions and 0 deletions
|
@ -2439,6 +2439,9 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
|
||||||
cancel: function InternalRenderTask_cancel() {
|
cancel: function InternalRenderTask_cancel() {
|
||||||
this.running = false;
|
this.running = false;
|
||||||
this.cancelled = true;
|
this.cancelled = true;
|
||||||
|
if (this.gfx) {
|
||||||
|
this.gfx.endDrawing();
|
||||||
|
}
|
||||||
if (this._canvas) {
|
if (this._canvas) {
|
||||||
canvasInRendering.delete(this._canvas);
|
canvasInRendering.delete(this._canvas);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue