@azerafati/ngx-scroll-drag
Version:
[](https://github.com/azerafati/scroll-drag/actions) [ • 601 B
TypeScript
import { ScrollDragDirective } from "./scroll-drag.directive";
export interface Coords {
x: number;
y: number;
}
export declare class Inertia {
private scrollDragDirective;
private impulseY;
private totalImpulseEnergy;
private inertialMoveDivider;
private mouseWayPoints;
private readonly maxPointsToCheckSpeed;
constructor(scrollDragDirective: ScrollDragDirective);
addMouseWayPoints(x: number, y: number): Inertia;
stopInertion(): Inertia;
startInertialMove(x: number, y: number): void;
private clearWayPoints;
private inertialDisplacement;
}