mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #19198 from calixteman/fix_intermittent_itest_chrome
Fix intermittent failures when moving a freetext annotation in integration tests
This commit is contained in:
commit
b35999d837
3 changed files with 54 additions and 86 deletions
|
@ -1278,6 +1278,11 @@ class AnnotationEditor {
|
|||
this.#moveInDOMTimeout = setTimeout(() => {
|
||||
this.#moveInDOMTimeout = null;
|
||||
this.parent?.moveEditorInDOM(this);
|
||||
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("TESTING")) {
|
||||
this._uiManager._eventBus.dispatch("editormovedindom", {
|
||||
source: this,
|
||||
});
|
||||
}
|
||||
}, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue