summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-03-28 19:09:39 -0700
committerAlex Yatskov <alex@foosoft.net>2016-03-28 19:09:39 -0700
commit7ec9e6fd88cf447ea0a6854f6549288b7caab11e (patch)
tree85aa2848e7bc26de4b257e13a9bb6d71d3b20e17
parent537d91dd10b9a84c72391a58942c4a8b3814939f (diff)
Don't send up events to window
-rw-r--r--ext/client.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/client.js b/ext/client.js
index f5fdfb4d..2812971c 100644
--- a/ext/client.js
+++ b/ext/client.js
@@ -30,6 +30,7 @@ class Client {
window.addEventListener('mousedown', this.onMouseDown.bind(this));
window.addEventListener('mousemove', this.onMouseMove.bind(this));
window.addEventListener('keydown', this.onKeyDown.bind(this));
+ this.popup.mousedown((e) => e.stopPropagation());
getState((state) => this.setEnabled(state === 'enabled'));
}