mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #19338 from avdoseferovic/fix/ink-editor-jumping
[Editor] Don't scroll when drawing (issue 17327)
This commit is contained in:
commit
f798bade4e
2 changed files with 53 additions and 1 deletions
|
@ -805,7 +805,9 @@ class AnnotationEditorLayer {
|
|||
}
|
||||
|
||||
startDrawingSession(event) {
|
||||
this.div.focus();
|
||||
this.div.focus({
|
||||
preventScroll: true,
|
||||
});
|
||||
if (this.#drawingAC) {
|
||||
this.#currentEditorType.startDrawing(this, this.#uiManager, false, event);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue