UNPKG

@azerafati/ngx-scroll-drag

Version:

[![Build Status](https://github.com/azerafati/scroll-drag/actions/workflows/test.yml/badge.svg)](https://github.com/azerafati/scroll-drag/actions) [![npm version](https://img.shields.io/npm/v/@azerafati/ngx-scroll-drag.svg?logo=npm&logoColor=fff&label=NPM

20 lines (19 loc) 601 B
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; }