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


<a id='references'></a>


<h2 id="rightclick-position">rightClick</h2>

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


```kotlin
fun TrackpadInjectionScope.rightClick(position: Offset = center) =
    click(position, TrackpadButton.Secondary)
```


Secondary-click on `position`, or on the current cursor position if `position` is
`unspecified`. While the secondary button is not necessarily a physical right
button (e.g. a multi-finger tap), this method is still called `rightClick` for it's widespread
use. The `position` is in the node's local coordinate system, where (0, 0) is the top left corner
of the node.

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






<hr class="docs-overload-divider">


<h2 id="rightclick-position-2">rightClick</h2>

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


```kotlin
fun MouseInjectionScope.rightClick(position: Offset = center) =
    click(position, MouseButton.Secondary)
```


Secondary-click on `position`, or on the current mouse position if `position` is
`unspecified`. While the secondary mouse button is not necessarily the right
mouse button (e.g. on left-handed mice), this method is still called `rightClick` for it's
widespread use. The `position` is in the node's local coordinate system, where (0, 0) is the top
left corner of the node.

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