Files
Webklar.com/node_modules/embla-carousel/components/DragTracker.d.ts
Basilosaurusrex f027651f9b main repo
2025-11-24 18:09:40 +01:00

11 lines
505 B
TypeScript

import { AxisOptionType, AxisType } from './Axis';
import { WindowType } from './utils';
export type PointerEventType = TouchEvent | MouseEvent;
export type DragTrackerType = {
pointerDown: (evt: PointerEventType) => number;
pointerMove: (evt: PointerEventType) => number;
pointerUp: (evt: PointerEventType) => number;
readPoint: (evt: PointerEventType, evtAxis?: AxisOptionType) => number;
};
export declare function DragTracker(axis: AxisType, ownerWindow: WindowType): DragTrackerType;