Events detection

Which type of events will be detected by hook

Name

detect

Type

Javascript
'mouse' | 'touch' | 'pointer'
TypeScript
enum LongPressEventType {
  Mouse = 'mouse',
  Touch = 'touch',
  Pointer = 'pointer',
}

Default value

Javascript
'pointer'
TypeScript
LongPressEventType.Pointer

Description

Which event handlers should be returned from bind function.

Last updated