summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/client.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/client.js b/ext/client.js
index 6d082909..5dc7e7f3 100644
--- a/ext/client.js
+++ b/ext/client.js
@@ -30,6 +30,8 @@ class Client {
window.addEventListener('mousedown', this.onMouseDown.bind(this));
window.addEventListener('mousemove', this.onMouseMove.bind(this));
window.addEventListener('keydown', this.onKeyDown.bind(this));
+ window.addEventListener('scroll', (e) => this.hidePopup());
+ window.addEventListener('resize', (e) => this.hidePopup());
this.popup.mousedown((e) => e.stopPropagation());
this.popup.scroll((e) => e.stopPropagation());