diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-03-28 19:09:39 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-03-28 19:09:39 -0700 |
commit | 7ec9e6fd88cf447ea0a6854f6549288b7caab11e (patch) | |
tree | 85aa2848e7bc26de4b257e13a9bb6d71d3b20e17 /ext/client.js | |
parent | 537d91dd10b9a84c72391a58942c4a8b3814939f (diff) |
Don't send up events to window
Diffstat (limited to 'ext/client.js')
-rw-r--r-- | ext/client.js | 1 |
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')); } |