Double tap hook
  • Introduction
  • Installation
  • Basics
  • Advanced
    • Definition
    • Callback
    • Threshold
    • Options
      • Callbacks
        • Single tap
    • Hook result / Bind object
      • Handlers
  • Examples
    • Live demo
      • Version 1
  • Migration
    • Change log
Powered by GitBook
On this page

Was this helpful?

  1. Advanced
  2. Options
  3. Callbacks

Single tap

PreviousCallbacksNextHook result / Bind object

Last updated 1 year ago

Was this helpful?

Name

onSingleTap

Type

Javascript
(event) => void
TypeScript
(
    event: MouseEvent<Target>
) => void

Default value

undefined

Description

Callback for handling case when double tap is not triggered, because of capture timeout.

For example if threshold parameter is 300ms and second tap occurs after 500ms then onSingleTap is triggered at 300ms mark.