diff options
| author | Alex Yatskov <alex@foosoft.net> | 2016-04-10 22:04:58 -0700 | 
|---|---|---|
| committer | Alex Yatskov <alex@foosoft.net> | 2016-04-10 22:04:58 -0700 | 
| commit | bf7c476a72753cd3449a092fc784eb2b63bd378c (patch) | |
| tree | ec731321e191b06222c04a25413a71f46796d8b9 /ext | |
| parent | 8b59580652058aba645eca439c3e44a18e0a0e53 (diff) | |
Prevent popup from being shown for popup text
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/fg/js/client.js | 5 | 
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(); |