---
title: "tripleClick"
description: "Use [button] to triple-click on [position], or on the current trackpad position if [position] is
[unspecified][Offset.Unspecified]. The [position] is in the node's local coordinate system, where
(0, 0) is the top left corner of the node. The default [button] is the
[primary][TrackpadButton.Primary] button."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun TrackpadInjectionScope.tripleClick(
    position: Offset = center,
    button: TrackpadButton = TrackpadButton.Primary,
)
```


Use `button` to triple-click on `position`, or on the current trackpad position if `position` is
`unspecified`. The `position` is in the node's local coordinate system, where
(0, 0) is the top left corner of the node. The default `button` is the
`primary` button.

#### Parameters

| | |
| --- | --- |
| position | The position where to click, in the node's local coordinate system. If omitted, the `center` of the node will be used. If `unspecified`, clicks on the current trackpad position. |
| button | The button to click with. Uses the `primary` by default. |




<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun MouseInjectionScope.tripleClick(
    position: Offset = center,
    button: MouseButton = MouseButton.Primary,
)
```


Use `button` to triple-click on `position`, or on the current mouse position if `position` is
`unspecified`. The `position` is in the node's local coordinate system, where
(0, 0) is the top left corner of the node. The default `button` is the
`primary` button.

#### Parameters

| | |
| --- | --- |
| position | The position where to click, in the node's local coordinate system. If omitted, the `center` of the node will be used. If `unspecified`, clicks on the current mouse position. |
| button | The button to click with. Uses the `primary` by default. |




