Further merge and reduce

- Remove unused keyboardEvent module
- Trim unused browserEvent in OnStopCallback
- Inline single-use helpers to reduce module surface
- Remove createFastDomNode wrapper
This commit is contained in:
Daniel Imms
2026-02-03 05:21:03 -08:00
parent ab5c06cf17
commit 3d473b52b6
12 changed files with 237 additions and 347 deletions
@@ -7,7 +7,7 @@ import * as dom from '../Dom';
import { DisposableStore, IDisposable, toDisposable } from 'common/Lifecycle';
type PointerMoveCallback = (event: PointerEvent) => void;
type OnStopCallback = (browserEvent?: PointerEvent | KeyboardEvent) => void;
type OnStopCallback = () => void;
export class GlobalPointerMoveMonitor implements IDisposable {
@@ -20,7 +20,7 @@ export class GlobalPointerMoveMonitor implements IDisposable {
this._hooks.dispose();
}
public stopMonitoring(invokeStopCallback: boolean, browserEvent?: PointerEvent | KeyboardEvent): void {
public stopMonitoring(invokeStopCallback: boolean): void {
if (!this.isMonitoring()) {
return;
}
@@ -31,7 +31,7 @@ export class GlobalPointerMoveMonitor implements IDisposable {
this._onStopCallback = null;
if (invokeStopCallback && onStopCallback) {
onStopCallback(browserEvent);
onStopCallback();
}
}