Cancel outside element

If long press should be cancelled when moved outside element

Name

cancelOutsideElement

Type

boolean

Default value

true

Description

If long press should be canceled when moving mouse / touch / pointer outside the element to which it was bound. When cancelled returns

Javascript
'cancelled-outside-element'
TypeScript
LongPressCallbackReason.CancelledOutsideElement

as a cancel reason in onCancel callback. Works for mouse and pointer events, touch events may be supported in the future.

Last updated