UNPKG

443 BTypeScriptView Raw
1import { PointerCoordinates } from '../util/dom';
2export declare class PanRecognizer {
3 private direction;
4 private startCoord;
5 private dirty;
6 private threshold;
7 private maxCosine;
8 private _angle;
9 private _isPan;
10 constructor(direction: string, threshold: number, maxAngle: number);
11 start(coord: PointerCoordinates): void;
12 detect(coord: PointerCoordinates): boolean;
13 angle(): any;
14 pan(): number;
15}