Skip to content

Commit

Permalink
avoid ResizeObserver feedback loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jul 5, 2020
1 parent d0fe643 commit bb1557b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminus-terminal/src/frontends/xtermFrontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit bb1557b

Please sign in to comment.