Callbacks
Long press lifecycle callbacks
Last updated
Was this helpful?
Long press lifecycle callbacks
Last updated
Was this helpful?
All callbacks (including function) has the same structure.
As a first argument callback receives from a proper (e.g. onMouseDown
) and as second receives meta object with following structure:
Pseudocode
Both object properties are optional.
context
will be present if you pass it to . See for more info.
Here is a list of all possible reason values
reason
will be present in callback to indicate why long press was cancelled.