Remove window.onscroll handler since it causes a warning

This commit is contained in:
toasted-nutbread 2020-01-11 15:50:55 -05:00
parent 5afad35c4e
commit 8e15c20311

View File

@ -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);