@expofp/floorplan
Version:
Interactive floor plan library for expos and events
19 lines • 626 B
TypeScript
interface DragGestureConfig {
onDragStart: (clientY: number) => void;
onDragMove: (clientY: number) => void;
onDragEnd: () => void;
}
export declare const useDragGesture: ({ onDragStart, onDragMove, onDragEnd }: DragGestureConfig) => {
touchHandlers: {
onTouchStart: (event: TouchEvent) => void;
onTouchMove: (event: TouchEvent) => void;
onTouchEnd: () => void;
};
mouseHandlers: {
onMouseDown: (event: MouseEvent) => void;
onMouseMove: (event: MouseEvent) => void;
onMouseUp: () => void;
};
};
export {};
//# sourceMappingURL=useDragGesture.d.ts.map