Buckets:
| import { registerAction, wheelAction } from '@use-gesture/core/actions' | |
| import { UserWheelConfig, Handler, EventTypes } from '@use-gesture/core/types' | |
| import { useRecognizers } from './useRecognizers' | |
| /** | |
| * Wheel hook. | |
| * | |
| * @param {Handler<'wheel'>} handler - the function fired every time the wheel gesture updates | |
| * @param {UserWheelConfig} config - the config object including generic options and wheel options | |
| */ | |
| export function useWheel<EventType = EventTypes['wheel'], Config extends UserWheelConfig = UserWheelConfig>( | |
| handler: Handler<'wheel', EventType>, | |
| config?: Config | |
| ) { | |
| registerAction(wheelAction) | |
| return useRecognizers({ wheel: handler }, config || {}, 'wheel') | |
| } | |
Xet Storage Details
- Size:
- 692 Bytes
- Xet hash:
- 1ab66f21ff5dbb36468f7e3910ce18ed48dd5d176cb1e86c049cd254a0e396dd
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.