1
0
Fork 0
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:
calixteman 2025-01-23 22:07:29 +01:00 committed by GitHub
commit f798bade4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 53 additions and 1 deletions

View file

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