@xterm/xterm 5.6.0-beta.129 → 5.6.0-beta.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/xterm.js +1 -1
- package/lib/xterm.js.map +1 -1
- package/lib/xterm.mjs +1 -1
- package/lib/xterm.mjs.map +2 -2
- package/package.json +2 -2
- package/src/browser/Viewport.ts +7 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xterm/xterm",
|
|
3
3
|
"description": "Full xterm terminal, in your browser",
|
|
4
|
-
"version": "5.6.0-beta.
|
|
4
|
+
"version": "5.6.0-beta.130",
|
|
5
5
|
"main": "lib/xterm.js",
|
|
6
6
|
"module": "lib/xterm.mjs",
|
|
7
7
|
"style": "css/xterm.css",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"ws": "^8.2.3",
|
|
109
109
|
"xterm-benchmark": "^0.3.1"
|
|
110
110
|
},
|
|
111
|
-
"commit": "
|
|
111
|
+
"commit": "f4baddaaf118dd2d537187182fa7db8776cd546f"
|
|
112
112
|
}
|
package/src/browser/Viewport.ts
CHANGED
|
@@ -94,7 +94,12 @@ export class Viewport extends Disposable {
|
|
|
94
94
|
}));
|
|
95
95
|
|
|
96
96
|
this._register(this._bufferService.onResize(() => this.queueSync()));
|
|
97
|
-
this._register(this._bufferService.buffers.onBufferActivate(() =>
|
|
97
|
+
this._register(this._bufferService.buffers.onBufferActivate(() => {
|
|
98
|
+
// Reset _latestYDisp when switching buffers to prevent stale scroll position
|
|
99
|
+
// from alt buffer contaminating normal buffer scroll position
|
|
100
|
+
this._latestYDisp = undefined;
|
|
101
|
+
this.queueSync();
|
|
102
|
+
}));
|
|
98
103
|
this._register(this._bufferService.onScroll(() => this._sync()));
|
|
99
104
|
|
|
100
105
|
this._register(this._scrollableElement.onScroll(e => this._handleScroll(e)));
|
|
@@ -157,7 +162,7 @@ export class Viewport extends Disposable {
|
|
|
157
162
|
});
|
|
158
163
|
this._suppressOnScrollHandler = false;
|
|
159
164
|
|
|
160
|
-
// If ydisp has been changed by some other
|
|
165
|
+
// If ydisp has been changed by some other component (input/buffer), then stop animating smooth
|
|
161
166
|
// scroll and scroll there immediately.
|
|
162
167
|
if (ydisp !== this._latestYDisp) {
|
|
163
168
|
this._scrollableElement.setScrollPosition({
|