Favivon - Correção

This commit is contained in:
2026-05-30 19:59:39 -03:00
parent 76ddaa815d
commit d7dfd221f0
32859 changed files with 5459654 additions and 404 deletions
+17
View File
@@ -0,0 +1,17 @@
import { registerAction, moveAction } from '@use-gesture/core/actions'
import { UserMoveConfig, Handler, EventTypes } from '@use-gesture/core/types'
import { useRecognizers } from './useRecognizers'
/**
* Move hook.
*
* @param {Handler<'move'>} handler - the function fired every time the move gesture updates
* @param {UserMoveConfig} config - the config object including generic options and move options
*/
export function useMove<EventType = EventTypes['move'], Config extends UserMoveConfig = UserMoveConfig>(
handler: Handler<'move', EventType>,
config?: Config
) {
registerAction(moveAction)
return useRecognizers({ move: handler }, config || {}, 'move')
}