summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/fg/js/client.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js
index 6b618bde..20838e10 100644
--- a/ext/fg/js/client.js
+++ b/ext/fg/js/client.js
@@ -88,6 +88,11 @@ class Client {
return;
}
+ if (this.popup.contains(range.startContainer)) {
+ this.hidePopup();
+ return;
+ }
+
const rect = getRangePaddedRect(range);
if (point.x < rect.left || point.x > rect.right) {
this.hidePopup();