summaryrefslogtreecommitdiff
path: root/ext/fg/js/client.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-10 22:04:58 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-10 22:04:58 -0700
commitbf7c476a72753cd3449a092fc784eb2b63bd378c (patch)
treeec731321e191b06222c04a25413a71f46796d8b9 /ext/fg/js/client.js
parent8b59580652058aba645eca439c3e44a18e0a0e53 (diff)
Prevent popup from being shown for popup text
Diffstat (limited to 'ext/fg/js/client.js')
-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();