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. Hook result / Bind object

Handlers

PreviousHook result / Bind objectNextLive demo

Last updated 1 year ago

Was this helpful?

Handlers are returned from which then can be spread to react element as show in .

  • onClick

Why onClick?

Because it leverages built in event listener which can also detect mobile tap event.

This way we can get rid of edge cases when combining onTouchStart onTouchEnd onTouchCancel onTouchMove events.

Also this approach greatly reduce package size as well as increase speed and flexibility because although this hook was designed for detecting double tap it can also detect double click.

bind object
example