mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-02 04:17:24 +02:00
Merge pull request #21219 from calixteman/issue21217
Clear the text layer container when cancelling rendering
This commit is contained in:
commit
a1d9f13278
@ -155,6 +155,8 @@ class TextLayerBuilder {
|
|||||||
cancel() {
|
cancel() {
|
||||||
this.#textLayer?.cancel();
|
this.#textLayer?.cancel();
|
||||||
this.#textLayer = null;
|
this.#textLayer = null;
|
||||||
|
this.#renderingDone = false;
|
||||||
|
this.div.replaceChildren();
|
||||||
|
|
||||||
this.highlighter?.disable();
|
this.highlighter?.disable();
|
||||||
this.accessibilityManager?.disable();
|
this.accessibilityManager?.disable();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user