1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-26 03:51:49 +03:00

avoid ResizeObserver feedback loop

This commit is contained in:
Eugene Pankov 2020-07-05 12:47:40 +02:00
parent d0fe64355b
commit bb1557b0a4

View File

@ -155,7 +155,7 @@ export class XTermFrontend extends Frontend {
host.addEventListener('mouseup', event => this.mouseEvent.next(event as MouseEvent))
host.addEventListener('mousewheel', event => this.mouseEvent.next(event as MouseEvent))
const ro = new window['ResizeObserver'](() => this.resizeHandler())
const ro = new window['ResizeObserver'](() => setTimeout(() => this.resizeHandler()))
ro.observe(host)
}