From 32c3cb01a1f3185c2f746f234523561e171107c6 Mon Sep 17 00:00:00 2001 From: Anthony Kim Date: Tue, 30 Sep 2025 23:04:04 -0700 Subject: [PATCH] Make sure this._latestYDisp is up to date --- src/browser/Viewport.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 });