From 8e15c2031142c4d52088c6b159c90fcec03c46ef Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 11 Jan 2020 15:50:55 -0500 Subject: [PATCH] Remove window.onscroll handler since it causes a warning --- ext/fg/js/frontend.js | 5 ----- 1 file changed, 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);