mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[Editor] Avoid to scroll when an editor is unselected
This commit is contained in:
parent
d96fd80ca0
commit
c2fcc66302
1 changed files with 3 additions and 1 deletions
|
@ -1503,7 +1503,9 @@ class AnnotationEditor {
|
|||
if (this.div?.contains(document.activeElement)) {
|
||||
// Don't use this.div.blur() because we don't know where the focus will
|
||||
// go.
|
||||
this._uiManager.currentLayer.div.focus();
|
||||
this._uiManager.currentLayer.div.focus({
|
||||
preventScroll: true,
|
||||
});
|
||||
}
|
||||
this.#editToolbar?.hide();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue