UNPKG

react-use-gesture

Version:

React hook for receiving gestures https://use-gesture.netlify.app

9 lines (8 loc) 424 B
import { UseWheelConfig, Handler, EventTypes } from '../types'; /** * Wheel hook. * * @param handler - the function fired every time the wheel gesture updates * @param the config object including generic options and wheel options */ export declare function useWheel<K = EventTypes['wheel']>(handler: Handler<'wheel', K>, config?: UseWheelConfig | {}): (...args: any[]) => import("../types").ReactEventHandlers;