@xterm/xterm 5.6.0-beta.100 → 5.6.0-beta.101

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/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.100",
4
+ "version": "5.6.0-beta.101",
5
5
  "main": "lib/xterm.js",
6
6
  "module": "lib/xterm.mjs",
7
7
  "style": "css/xterm.css",
@@ -107,5 +107,5 @@
107
107
  "ws": "^8.2.3",
108
108
  "xterm-benchmark": "^0.3.1"
109
109
  },
110
- "commit": "1771825e81d2457c76cb289bc3363e8bca986f0f"
110
+ "commit": "5e9ffb4c56446a747a0f4ebcd01cfe4aa6e46e56"
111
111
  }
@@ -532,7 +532,13 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
532
532
  this.textarea!.focus();
533
533
  this.textarea!.select();
534
534
  }));
535
- this._register(this._onScroll.event(() => this._selectionService!.refresh()));
535
+ this._register(Event.any(
536
+ this._onScroll.event,
537
+ this._inputHandler.onScroll
538
+ )(() => {
539
+ this._selectionService!.refresh();
540
+ this._viewport?.queueSync();
541
+ }));
536
542
 
537
543
  this._register(this._instantiationService.createInstance(BufferDecorationRenderer, this.screenElement));
538
544
  this._register(addDisposableListener(this.element, 'mousedown', (e: MouseEvent) => this._selectionService!.handleMouseDown(e)));
@@ -93,8 +93,8 @@ export class Viewport extends Disposable {
93
93
  ].join('\n');
94
94
  }));
95
95
 
96
- this._register(this._bufferService.onResize(() => this._queueSync()));
97
- this._register(this._bufferService.buffers.onBufferActivate(() => this._queueSync()));
96
+ this._register(this._bufferService.onResize(() => this.queueSync()));
97
+ this._register(this._bufferService.buffers.onBufferActivate(() => this.queueSync()));
98
98
  this._register(this._bufferService.onScroll(() => this._sync()));
99
99
 
100
100
  this._register(this._scrollableElement.onScroll(e => this._handleScroll(e)));
@@ -126,7 +126,7 @@ export class Viewport extends Disposable {
126
126
  };
127
127
  }
128
128
 
129
- private _queueSync(ydisp?: number): void {
129
+ public queueSync(ydisp?: number): void {
130
130
  // Update state
131
131
  if (ydisp !== undefined) {
132
132
  this._latestYDisp = ydisp;