Move logic to Viewport

This commit is contained in:
tisilent
2023-06-06 20:14:24 +08:00
parent b7d73f63cd
commit ce2d115087
4 changed files with 57 additions and 91 deletions
+1 -10
View File
@@ -148,16 +148,7 @@ export interface IViewport extends IDisposable {
handleWheel(ev: WheelEvent): boolean;
handleTouchStart(ev: TouchEvent): void;
handleTouchMove(ev: TouchEvent): boolean;
}
export interface ISmoothScrollState {
startTime: number;
origin: number;
target: number;
}
export interface ISmoothScrollProgressState extends ISmoothScrollState {
progress: number;
scrollLines(disp: number): void; // todo api name?
}
export interface ILinkifierEvent {