Prevent popup from being shown for popup text
This commit is contained in:
parent
8b59580652
commit
bf7c476a72
@ -88,6 +88,11 @@ class Client {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.popup.contains(range.startContainer)) {
|
||||||
|
this.hidePopup();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const rect = getRangePaddedRect(range);
|
const rect = getRangePaddedRect(range);
|
||||||
if (point.x < rect.left || point.x > rect.right) {
|
if (point.x < rect.left || point.x > rect.right) {
|
||||||
this.hidePopup();
|
this.hidePopup();
|
||||||
|
Loading…
Reference in New Issue
Block a user