summaryrefslogtreecommitdiff
path: root/ext/fg/js/client.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-14 21:55:21 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-14 21:55:21 -0700
commit77761a953876a22f08df20a503ca3de131cf3ac8 (patch)
tree9c2519fa05441c8fb59cb94c20b77bfee15915df /ext/fg/js/client.js
parent0cd7830281a87bbe449a547ed868ae1f62c5bc97 (diff)
Handle events
Diffstat (limited to 'ext/fg/js/client.js')
-rw-r--r--ext/fg/js/client.js2
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));