aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-11 15:50:55 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-22 20:38:21 -0500
commit8e15c2031142c4d52088c6b159c90fcec03c46ef (patch)
tree0773df598f97f6b9030e9703447b2a1b8190b54a /ext
parent5afad35c4e2d37a634ac42da3fa3a0fd8837384e (diff)
Remove window.onscroll handler since it causes a warning
Diffstat (limited to 'ext')
-rw-r--r--ext/fg/js/frontend.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index e1021ce8..2286bf19 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -46,7 +46,6 @@ class Frontend extends TextScanner {
const {zoomFactor} = await apiGetZoom();
this._pageZoomFactor = zoomFactor;
- window.addEventListener('scroll', this.onScroll.bind(this), false);
window.addEventListener('resize', this.onResize.bind(this), false);
const visualViewport = window.visualViewport;
@@ -70,10 +69,6 @@ class Frontend extends TextScanner {
this._updatePopupPosition();
}
- onScroll() {
- this._updatePopupPosition();
- }
-
onWindowMessage(e) {
const action = e.data;
const handler = Frontend._windowMessageHandlers.get(action);