useSwipe
Detect swipe direction and distance on touch devices.
See useSwipe with a live demouseSwipe(
ref?,threshold?):SwipeState
Parameters
ref?
RefObject<HTMLElement | null>
threshold?
number = 50
Detect swipe direction and distance on touch devices.
See useSwipe with a live demouseSwipe(
ref?,threshold?):SwipeState
RefObject<HTMLElement | null>
number = 50