Skip to main content

gesture event

React Hooks

useDragHandles the drag gesture
useHoverHandles mouse enter and mouse leave events
useKeyHandles key down and key up events
usePinchHandles the pinch gesture
useMoveHandles mouse move events
useResizeHandles components resize events
useScrollHandles scroll events
useWheelHandles wheel events


const { ref } = useDrag((state) => doSomethingWith(state))

<div ref={ref} />