Function useMouseDownAndHoldListener
- useMouseDownAndHoldListener(onPointerDown, options?): ((event) => void)
Parameters
- onPointerDown: ((event) => boolean | void)
- (event): boolean | void
Parameters
- event: PointerEvent<Element>
Returns boolean | void
Optional
options: RepeatClickOptions
Returns ((event) => void)
- (event): void
Parameters
- event: React.PointerEvent<Element>
Returns void
Simple hook that calls onMouseDown at intervals until mouse is up.