From bf7c476a72753cd3449a092fc784eb2b63bd378c Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 10 Apr 2016 22:04:58 -0700 Subject: [PATCH] Prevent popup from being shown for popup text --- ext/fg/js/client.js | 5 +++++ 1 file changed, 5 insertions(+) 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();