1
0
Fork 0
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:
calixteman 2024-12-10 16:56:58 +01:00 committed by GitHub
commit b35999d837
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 54 additions and 86 deletions

View file

@ -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);
}