---
title: "right"
description: "Returns the x-coordinate for the right edge of the node we're interacting with, in the node's
local coordinate system, where (0, 0) is the top left corner of the node. Note that, unless
`width == 0`, `right != width`. In particular, `right == width - 1f`, because pixels are 0-based.
If `width == 0`, `right == 0` too."
type: "property"
---

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


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

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


> **Deprecated** Replaced by TouchInjectionScope. Use `performTouchInput` instead of `performGesture`

```kotlin
inline val GestureScope.right: Float
```


Returns the x-coordinate for the right edge of the node we're interacting with, in the node's
local coordinate system, where (0, 0) is the top left corner of the node. Note that, unless
`width == 0`, `right != width`. In particular, `right == width - 1f`, because pixels are 0-based.
If `width == 0`, `right == 0` too.



