@1ohooks/use-vertical-swipe-minimum
v0.1.1
Published
<h1>useVerticalSwipeMinimum</h1>
Readme
minSwipe(number): The minimum swipe distance required to trigger a swipe action (default is 50 pixels).onSwipeUp(function): A callback function to be executed when a swipe up gesture is detected.onSwipeDown(function): A callback function to be executed when a swipe down gesture is detected.
Here's an example of how to use useVerticalSwipeMinimum in your component:
