> For the complete documentation index, see [llms.txt](https://minwork.gitbook.io/double-tap-hook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://minwork.gitbook.io/double-tap-hook/advanced/options/callbacks/single-tap.md).

# Single tap

#### Name

`onSingleTap`

#### Type

{% code title="Javascript" %}

```javascript
(event) => void
```

{% endcode %}

{% code title="TypeScript" %}

```typescript
(
    event: MouseEvent<Target>
) => void
```

{% endcode %}

#### 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.

<figure><img src="https://2002432855-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0avzZjk4yREihcTvF3Jc%2Fuploads%2FJmG5cObyhVF0p3D7FxS6%2FScreenshot%202023-08-27%20at%2017.35.25.png?alt=media&amp;token=4b3af28a-8c80-4508-84cc-9c0be6929cea" alt=""><figcaption></figcaption></figure>
