mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-18 03:04:07 +02:00
Merge pull request #21092 from Snuffleupagus/AnnotationEditorLayer-stopEvent
Use the `stopEvent` helper function in the `AnnotationEditorLayer` class
This commit is contained in:
commit
89b195d35c
@ -30,11 +30,11 @@ import {
|
||||
AnnotationEditorType,
|
||||
FeatureTest,
|
||||
} from "../../shared/util.js";
|
||||
import { setLayerDimensions, stopEvent } from "../display_utils.js";
|
||||
import { AnnotationEditor } from "./editor.js";
|
||||
import { FreeTextEditor } from "./freetext.js";
|
||||
import { HighlightEditor } from "./highlight.js";
|
||||
import { InkEditor } from "./ink.js";
|
||||
import { setLayerDimensions } from "../display_utils.js";
|
||||
import { SignatureEditor } from "./signature.js";
|
||||
import { StampEditor } from "./stamp.js";
|
||||
|
||||
@ -344,8 +344,7 @@ class AnnotationEditorLayer {
|
||||
}
|
||||
const editor = this.#editors.get(id);
|
||||
if (editor?.annotationElementId === null) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
stopEvent(e);
|
||||
editor.dblclick(e);
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user