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();
|
const {zoomFactor} = await apiGetZoom();
|
||||||
this._pageZoomFactor = zoomFactor;
|
this._pageZoomFactor = zoomFactor;
|
||||||
|
|
||||||
window.addEventListener('scroll', this.onScroll.bind(this), false);
|
|
||||||
window.addEventListener('resize', this.onResize.bind(this), false);
|
window.addEventListener('resize', this.onResize.bind(this), false);
|
||||||
|
|
||||||
const visualViewport = window.visualViewport;
|
const visualViewport = window.visualViewport;
|
||||||
@ -70,10 +69,6 @@ class Frontend extends TextScanner {
|
|||||||
this._updatePopupPosition();
|
this._updatePopupPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
onScroll() {
|
|
||||||
this._updatePopupPosition();
|
|
||||||
}
|
|
||||||
|
|
||||||
onWindowMessage(e) {
|
onWindowMessage(e) {
|
||||||
const action = e.data;
|
const action = e.data;
|
||||||
const handler = Frontend._windowMessageHandlers.get(action);
|
const handler = Frontend._windowMessageHandlers.get(action);
|
||||||
|
Loading…
Reference in New Issue
Block a user