1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

[Editor] Disable mouse events when leaving the highlight mode

This commit is contained in:
Calixte Denizet 2023-12-01 17:10:19 +01:00
parent 096426f073
commit 83d0b6cb55
2 changed files with 16 additions and 0 deletions

View file

@ -198,6 +198,18 @@ class HighlightEditor extends AnnotationEditor {
});
}
/** @inheritdoc */
disableEditing() {
super.disableEditing();
this.div.classList.toggle("disabled", true);
}
/** @inheritdoc */
enableEditing() {
super.enableEditing();
this.div.classList.toggle("disabled", false);
}
/** @inheritdoc */
fixAndSetPosition() {
return super.fixAndSetPosition(0);