mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Add back IDisposable implementation in TimeBasedDebouncer for the ease of interoperability with RenderDebouncer
This commit is contained in:
@@ -5,10 +5,12 @@
|
||||
|
||||
const RENDER_DEBOUNCE_THRESHOLD_MS = 1000; // 1 Second
|
||||
|
||||
import { IDisposable } from 'common/Types';
|
||||
|
||||
/**
|
||||
* Debounces calls to update screen readers to update at most once per second.
|
||||
*/
|
||||
export class TimeBasedDebouncer {
|
||||
export class TimeBasedDebouncer implements IDisposable {
|
||||
private _rowStart: number | undefined;
|
||||
private _rowEnd: number | undefined;
|
||||
private _rowCount: number | undefined;
|
||||
@@ -23,6 +25,8 @@ export class TimeBasedDebouncer {
|
||||
) {
|
||||
}
|
||||
|
||||
public dispose(): void {}
|
||||
|
||||
public refresh(rowStart: number | undefined, rowEnd: number | undefined, rowCount: number): void {
|
||||
this._rowCount = rowCount;
|
||||
// Get the min/max row start/end for the arg values
|
||||
|
||||
Reference in New Issue
Block a user