Make sure this._latestYDisp is up to date

This commit is contained in:
Anthony Kim
2025-09-30 23:04:04 -07:00
parent a1d8e96fdd
commit 32c3cb01a1
+2 -1
View File
@@ -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
});