mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Make sure this._latestYDisp is up to date
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user