@visactor/vtable-gantt
Version:
canvas table width high performance
16 lines (15 loc) • 461 B
TypeScript
export declare class Inertia {
friction: number;
lastTime: number;
speedX: number;
speedY: number;
runingId: number;
stopped: boolean;
scrollHandle: (dx: number, dy: number) => void;
constructor();
setScrollHandle(scrollHandle: (dx: number, dy: number) => void): void;
startInertia(speedX: number, speedY: number, friction: number): void;
inertia(): void;
endInertia(): void;
isInertiaScrolling(): boolean;
}