Filtering events
Skip triggering long press for undesired events
Name
filterEvents
Type
Javascript
TypeScript
Default value
undefined
Description
If provided, it gives you the ability to ignore long press detection on specified conditions (e.g. on right mouse click).
When function returns false
, it will prevent ANY callbacks from triggering (including onStart and onCancel) as well as persisting event.
Last updated