diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-04-14 21:55:21 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-04-14 21:55:21 -0700 |
commit | 77761a953876a22f08df20a503ca3de131cf3ac8 (patch) | |
tree | 9c2519fa05441c8fb59cb94c20b77bfee15915df | |
parent | 0cd7830281a87bbe449a547ed868ae1f62c5bc97 (diff) |
Handle events
-rw-r--r-- | ext/fg/js/client.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/fg/js/client.js b/ext/fg/js/client.js index 99d86019..8739fa2d 100644 --- a/ext/fg/js/client.js +++ b/ext/fg/js/client.js @@ -27,6 +27,8 @@ class Client { this.popup = document.createElement('iframe'); this.popup.classList.add('yomichan-popup'); + this.popup.addEventListener('mousedown', (e) => e.stopPropagation()); + this.popup.addEventListener('scroll', (e) => e.stopPropagation()); document.body.appendChild(this.popup); chrome.runtime.onMessage.addListener(this.onMessage.bind(this)); |