@opensig/opendesign
Version:
21 lines (20 loc) • 544 B
TypeScript
import { PointT, PointMoveT } from './types';
interface TouchOptionsT {
onStart?: (pos: PointT, e: TouchEvent) => void;
onMove?: (pos: PointMoveT, e: TouchEvent) => void;
onEnd?: (pos: PointMoveT, e: TouchEvent) => void;
}
export declare class OPointer {
private el;
private x1;
private y1;
private onStart;
private onMove;
private onEnd;
private removeListener;
constructor(el: HTMLElement, options: TouchOptionsT);
private bind;
private onPointerMove;
private onPointerUp;
}
export {};