Remove window.onscroll handler since it causes a warning
This commit is contained in:
parent
5afad35c4e
commit
8e15c20311
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user