Press finished
When press on the element finishes
Name
onFinish
Type
(event, meta) => void
(
event:
| ReactMouseEvent<Target>
| ReactTouchEvent<Target>
| ReactPointerEvent<Target>,
meta: { context?: Context; reason?: LongPressCallbackReason }
) => void
Default value
undefined
Description
Called when press on the element is released, which is always AFTER threshold time elapses, therefore after long press occurs and callback is called.
This callback is mutually exclusive with onCancel callback, which means it won't be called if long press was cancelled before being triggered.
Last updated
Was this helpful?