useSwipe
Simple implementation to detect horizontal swipe actions. Accepts callbacks for on right and left swipes.
Import
import { useSwipe } from "@livekit/components-react";
Usage
<divonTouchStart={onTouchStart}onTouchMove={onTouchMove}onTouchEnd={onTouchEnd}>
Properties
element
React.RefObject<HTMLElement>
options?
UseSwipeOptions
Returns
void