taparoo
v1.0.9
Published
Simple touch handling React component
Downloads
243
Maintainers
Readme
taparoo
React component for touch event handling
Install
$ npm install taparoo
Props
interface TaparooProps {
onSwipe?: TaparooTouchEventHandler;
onSwipeUp?: TaparooTouchEventHandler;
onSwipeDown?: TaparooTouchEventHandler;
onSwipeLeft?: TaparooTouchEventHandler;
onSwipeRight?: TaparooTouchEventHandler;
onTap?: TaparooTouchEventHandler;
swipeThreshold?: number;
}
type TaparooTouchEventHandler = (event: TouchEvent, swipes?: Array<SwipeDirection>) => void;