mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Ensure that we cancel any pending textLayer
rendering operations when the viewer is closed (issue 7274)
This commit is contained in:
parent
a824c6c4f6
commit
3904be8889
3 changed files with 24 additions and 14 deletions
|
@ -229,6 +229,11 @@ var PDFPageView = (function PDFPageViewClosure() {
|
|||
}
|
||||
this.renderingState = RenderingStates.INITIAL;
|
||||
this.resume = null;
|
||||
|
||||
if (this.textLayer) {
|
||||
this.textLayer.cancel();
|
||||
this.textLayer = null;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue