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:
parent
d0fe64355b
commit
bb1557b0a4
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user