mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #17364 from calixteman/editor_disable_highlight
[Editor] Disable mouse events when leaving the highlight mode
This commit is contained in:
commit
6b3ae4492e
2 changed files with 16 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -954,6 +954,10 @@
|
|||
pointer-events: auto;
|
||||
}
|
||||
|
||||
&.disabled .internal {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&.selectedEditor {
|
||||
.internal {
|
||||
cursor: pointer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue