🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

rightClick

Secondary-click on position, or on the current mouse position if position is [unspecified]Offset.Unspecified.

rightClick

Source set: Common
public fun MouseInjectionScope.rightClick(position: Offset = center): Unit

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]Offset.Unspecified, clicks on the current mouse position.

rightClick

Source set: Common
public fun TrackpadInjectionScope.rightClick(position: Offset = center): Unit

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 its 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]Offset.Unspecified, clicks on the current trackpad position.