Move custom mouse event handler into MouseStateService

Don't need to keep it in CoreBrowserTerminal
This commit is contained in:
Daniel Imms
2026-03-11 10:36:35 +09:00
parent 2331abe6bd
commit d63445be94
7 changed files with 25 additions and 18 deletions
+10
View File
@@ -70,6 +70,16 @@ export interface IMouseStateService {
* Process wheel event taking partial scroll into account.
*/
consumeWheelEvent(ev: WheelEvent, cellHeight?: number, dpr?: number): number;
/**
* Sets a custom wheel event handler that can veto wheel processing.
*/
setCustomWheelEventHandler(customWheelEventHandler: ((event: WheelEvent) => boolean) | undefined): void;
/**
* Checks whether a wheel event should be processed.
*/
allowCustomWheelEvent(ev: WheelEvent): boolean;
}
export const ICoreService = createDecorator<ICoreService>('CoreService');