diff options
Diffstat (limited to 'ext/fg/js/client.js')
-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(); |