Skip to content

Commit 32c3cb0

Browse files
committed
Make sure this._latestYDisp is up to date
1 parent a1d8e96 commit 32c3cb0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/browser/Viewport.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,10 @@ export class Viewport extends Disposable {
157157
});
158158
this._suppressOnScrollHandler = false;
159159

160-
// If ydisp has been changed by some other copmonent (input/buffer), then stop animating smooth
160+
// If ydisp has been changed by some other component (input/buffer), then stop animating smooth
161161
// scroll and scroll there immediately.
162162
if (ydisp !== this._latestYDisp) {
163+
this._latestYDisp = ydisp;
163164
this._scrollableElement.setScrollPosition({
164165
scrollTop: ydisp * this._renderService.dimensions.css.cell.height
165166
});

0 commit comments

Comments
 (0)