merchi_product_editor
Version:
A React component for editing product images using Fabric.js
12 lines (11 loc) • 387 B
TypeScript
import { TouchEvent } from 'react';
interface SwipeNavigateOptions {
onSwipeLeft: () => void;
onSwipeRight: () => void;
threshold?: number;
}
export declare const useSwipeNavigate: ({ onSwipeLeft, onSwipeRight, threshold }: SwipeNavigateOptions) => {
onTouchStart: (e: TouchEvent<HTMLElement>) => void;
onTouchEnd: (e: TouchEvent<HTMLElement>) => void;
};
export {};