add richer ScrollEvent that includes the source

This commit is contained in:
Jakob Schrettenbrunner
2021-01-12 22:32:20 +00:00
parent 5cb048094e
commit 8b2b0f6abc
3 changed files with 39 additions and 15 deletions
+10
View File
@@ -42,6 +42,16 @@ export interface IKeyboardEvent {
type: string;
}
export interface IScrollEvent {
position: number;
source: ScrollSource;
}
export const enum ScrollSource {
TERMINAL,
VIEWPORT,
}
export interface ICircularList<T> {
length: number;
maxLength: number;