diff --git a/src/browser/Viewport.ts b/src/browser/Viewport.ts index 20e4db09..34880dee 100644 --- a/src/browser/Viewport.ts +++ b/src/browser/Viewport.ts @@ -157,9 +157,10 @@ export class Viewport extends Disposable { }); this._suppressOnScrollHandler = false; - // If ydisp has been changed by some other copmonent (input/buffer), then stop animating smooth + // If ydisp has been changed by some other component (input/buffer), then stop animating smooth // scroll and scroll there immediately. if (ydisp !== this._latestYDisp) { + this._latestYDisp = ydisp; this._scrollableElement.setScrollPosition({ scrollTop: ydisp * this._renderService.dimensions.css.cell.height });