1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

fix: don't scroll when drawing [#17327]

This commit is contained in:
avdoseferovic 2025-01-17 13:45:22 +01:00 committed by Avdo Seferovic
parent 45a32b7c58
commit 78f612ffef
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;