[Editor] Disable mouse events when leaving the highlight mode
This commit is contained in:
parent
096426f073
commit
83d0b6cb55
@ -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 */
|
/** @inheritdoc */
|
||||||
fixAndSetPosition() {
|
fixAndSetPosition() {
|
||||||
return super.fixAndSetPosition(0);
|
return super.fixAndSetPosition(0);
|
||||||
|
@ -954,6 +954,10 @@
|
|||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.disabled .internal {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
&.selectedEditor {
|
&.selectedEditor {
|
||||||
.internal {
|
.internal {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
Loading…
Reference in New Issue
Block a user