# GestureScope

Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+class:androidx.compose.ui.test.GestureScope) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0) Common/AllAndroid/JVM
- Cmn

  ```
  class GestureScope
  ```

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> Replaced by TouchInjectionScope

The receiver scope for injecting gestures on the SemanticsNode identified by the corresponding `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/SemanticsNodeInteraction`. Gestures can be injected by calling methods defined on `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope`, such as `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).click(androidx.compose.ui.geometry.Offset)` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipe(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Long)`. The `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/SemanticsNodeInteraction` can be found by one of the finder methods such as `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/SemanticsNodeInteractionsProvider#onNode(androidx.compose.ui.test.SemanticsMatcher,kotlin.Boolean)`.

The functions in `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope` can roughly be divided into two groups: full gestures and individual touch events. The individual touch events are: `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).down(kotlin.Int,androidx.compose.ui.geometry.Offset)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).move()` and friends, `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).up(kotlin.Int)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).cancel()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).advanceEventTime(kotlin.Long)`. Full gestures are all the other functions, like `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).click(androidx.compose.ui.geometry.Offset)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).doubleClick(androidx.compose.ui.geometry.Offset,kotlin.Long)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipe(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Long)`, etc. See the documentation of `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).down(kotlin.Int,androidx.compose.ui.geometry.Offset)` for more information about individual events. If you execute a full gesture while in the middle of another gesture, an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-state-exception/index.html` or `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` can be thrown when the pointerId is unintentionally used for both gestures. If you want to perform e.g. a click during a partially performed gesture, make sure they use different pointer ids.

Note that all events generated by the gesture methods are batched together and sent as a whole after `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.SemanticsNodeInteraction).performGesture(kotlin.Function1)` has executed its code block.

Next to the functions, `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope` also exposes several properties that allow you to get `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` within a node, like the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).topLeft()`, its `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).center()`, or some percentage of the size (`https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).percentOffset(kotlin.Float,kotlin.Float)`).

Example of performing a click:

```kotlin
import androidx.compose.ui.test.click
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.performGesture

composeTestRule.onNodeWithTag("myComponent").performGesture { click() }
```

Example of performing a swipe up:

```kotlin
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.performGesture
import androidx.compose.ui.test.swipeUp

composeTestRule.onNodeWithTag("myComponent").performGesture { swipeUp() }
```

Example of performing an L-shaped gesture:

```kotlin
import androidx.compose.ui.test.center
import androidx.compose.ui.test.centerLeft
import androidx.compose.ui.test.down
import androidx.compose.ui.test.moveTo
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.percentOffset
import androidx.compose.ui.test.performGesture
import androidx.compose.ui.test.topLeft
import androidx.compose.ui.test.up

composeTestRule.onNodeWithTag("myComponent").performGesture {
    down(topLeft)
    moveTo(topLeft + percentOffset(0f, .1f))
    moveTo(topLeft + percentOffset(0f, .2f))
    moveTo(topLeft + percentOffset(0f, .3f))
    moveTo(topLeft + percentOffset(0f, .4f))
    moveTo(centerLeft)
    moveTo(centerLeft + percentOffset(.1f, 0f))
    moveTo(centerLeft + percentOffset(.2f, 0f))
    moveTo(centerLeft + percentOffset(.3f, 0f))
    moveTo(centerLeft + percentOffset(.4f, 0f))
    moveTo(center)
    up()
}
```

## Summary

| ### Public constructors |
|---|---|
| `[GestureScope](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#GestureScope(androidx.compose.ui.semantics.SemanticsNode,androidx.compose.ui.test.TestContext))(node: https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/SemanticsNode, testContext: https://developer.android.com/reference/kotlin/androidx/compose/ui/test/TestContext)` **This function is deprecated.** Replaced by TouchInjectionScope | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#visibleSize()` **This property is deprecated.** Replaced by TouchInjectionScope | Cmn |

| ### Extension functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/ui/test/ExperimentalTestApi https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[advanceEventTime](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).advanceEventTime(kotlin.Long))(durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[cancel](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).cancel())()` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[click](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).click(androidx.compose.ui.geometry.Offset))(position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[doubleClick](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).doubleClick(androidx.compose.ui.geometry.Offset,kotlin.Long))(position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, delayMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[down](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).down(androidx.compose.ui.geometry.Offset))(position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[down](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).down(kotlin.Int,androidx.compose.ui.geometry.Offset))(pointerId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[longClick](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).longClick(androidx.compose.ui.geometry.Offset,kotlin.Long))(position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[move](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).move())()` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[moveBy](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).moveBy(androidx.compose.ui.geometry.Offset))(delta: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[moveBy](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).moveBy(kotlin.Int,androidx.compose.ui.geometry.Offset))(pointerId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, delta: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[movePointerBy](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).movePointerBy(kotlin.Int,androidx.compose.ui.geometry.Offset))(pointerId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, delta: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[movePointerTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).movePointerTo(kotlin.Int,androidx.compose.ui.geometry.Offset))(pointerId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[moveTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).moveTo(androidx.compose.ui.geometry.Offset))(position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[moveTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).moveTo(kotlin.Int,androidx.compose.ui.geometry.Offset))(pointerId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[percentOffset](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).percentOffset(kotlin.Float,kotlin.Float))(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[pinch](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).pinch(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Long))( start0: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, end0: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, start1: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, end1: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html )` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[swipe](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipe(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Long))(start: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, end: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[swipeDown](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeDown())()` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/ui/test/ExperimentalTestApi https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[swipeDown](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeDown(kotlin.Float,kotlin.Float,kotlin.Long))(startY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, endY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[swipeLeft](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeLeft())()` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/ui/test/ExperimentalTestApi https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[swipeLeft](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeLeft(kotlin.Float,kotlin.Float,kotlin.Long))(startX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, endX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[swipeRight](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeRight())()` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/ui/test/ExperimentalTestApi https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[swipeRight](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeRight(kotlin.Float,kotlin.Float,kotlin.Long))(startX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, endX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[swipeUp](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeUp())()` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/ui/test/ExperimentalTestApi https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[swipeUp](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeUp(kotlin.Float,kotlin.Float,kotlin.Long))(startY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, endY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[swipeWithVelocity](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeWithVelocity(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float,kotlin.Long))( start: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, end: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, endVelocity: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html )` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.[up](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).up(kotlin.Int))(pointerId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Replaced by TouchInjectionScope. | Cmn |

| ### Extension properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).bottom()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).bottomCenter()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).bottomLeft()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).bottomRight()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).center()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).centerLeft()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).centerRight()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).centerX()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).centerY()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).height()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).left()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).right()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).top()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).topCenter()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).topLeft()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).topRight()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).width()` **This property is deprecated.** Replaced by TouchInjectionScope. | Cmn |

## Public constructors

### GestureScope

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
[GestureScope](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#GestureScope(androidx.compose.ui.semantics.SemanticsNode,androidx.compose.ui.test.TestContext))(node: SemanticsNode, testContext: TestContext)
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope

## Public properties

### visibleSize

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val visibleSize: IntSize
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope

Returns the size of the visible part of the node we're interacting with. This is contrary to `https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/SemanticsNode#size()`, which returns the unclipped size of the node.

## Extension functions

### GestureScope.advanceEventTime

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:advanceEventTime)

```
@ExperimentalTestApi
fun GestureScope.[advanceEventTime](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).advanceEventTime(kotlin.Long))(durationMillis: Long): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Adds the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).advanceEventTime(kotlin.Long)` to the current event time, delaying the next event by that time. Only valid when a gesture has already been started, or when a finished gesture is resumed.

### GestureScope.cancel

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:cancel)

```
fun GestureScope.[cancel](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).cancel())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Sends a cancel event to cancel the current gesture. The cancel event contains the current position of all active pointers.

### GestureScope.click

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:click)

```
fun GestureScope.[click](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).click(androidx.compose.ui.geometry.Offset))(position: Offset = center): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs a click gesture at the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).click(androidx.compose.ui.geometry.Offset)` on the associated node, or in the center if the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).click(androidx.compose.ui.geometry.Offset)` is omitted. The `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).click(androidx.compose.ui.geometry.Offset)` is in the node's local coordinate system, where (0, 0) is the top left corner of the node. The default `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).click(androidx.compose.ui.geometry.Offset)` is the center of the node.

| Parameters |
|---|---|
| `position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset = center` | The position where to click, in the node's local coordinate system. If omitted, the center position will be used. |

### GestureScope.doubleClick

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:doubleClick)

```
fun GestureScope.[doubleClick](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).doubleClick(androidx.compose.ui.geometry.Offset,kotlin.Long))(
    position: Offset = center,
    delayMillis: Long = doubleClickDelayMillis
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs a double click gesture at the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).doubleClick(androidx.compose.ui.geometry.Offset,kotlin.Long)` on the associated node, or in the center if the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).doubleClick(androidx.compose.ui.geometry.Offset,kotlin.Long)` is omitted. By default, the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).doubleClick(androidx.compose.ui.geometry.Offset,kotlin.Long)` between the first and the second click is 145 milliseconds (empirically established). The `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).doubleClick(androidx.compose.ui.geometry.Offset,kotlin.Long)` is in the node's local coordinate system, where (0, 0) is the top left corner of the node.

| Parameters |
|---|---|
| `position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset = center` | The position of the double click, in the node's local coordinate system. If omitted, the center position will be used. |
| `delayMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html = doubleClickDelayMillis` | The time between the up event of the first click and the down event of the second click |

### GestureScope.down

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:down)

```
fun GestureScope.[down](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).down(androidx.compose.ui.geometry.Offset))(position: Offset): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Sends a down event for the default pointer at `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).down(androidx.compose.ui.geometry.Offset)` on the associated node. The `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).down(androidx.compose.ui.geometry.Offset)` is in the node's local coordinate system, where (0, 0) is the top left corner of the node. The default pointer has `pointerId = 0`.

If no pointers are down yet, this will start a new gesture. If a gesture is already in progress, this event is sent with at the same timestamp as the last event. If the default pointer is already down, an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` will be thrown.

| Parameters |
|---|---|
| `position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The position of the down event, in the node's local coordinate system |

### GestureScope.down

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:down)

```
fun GestureScope.[down](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).down(kotlin.Int,androidx.compose.ui.geometry.Offset))(pointerId: Int, position: Offset): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Sends a down event for the pointer with the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).down(kotlin.Int,androidx.compose.ui.geometry.Offset)` at `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).down(kotlin.Int,androidx.compose.ui.geometry.Offset)` on the associated node. The `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).down(kotlin.Int,androidx.compose.ui.geometry.Offset)` is in the node's local coordinate system, where (0, 0) is the top left corner of the node.

If no pointers are down yet, this will start a new gesture. If a gesture is already in progress, this event is sent with at the same timestamp as the last event. If the given pointer is already down, an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` will be thrown.

Subsequent events for this or other gestures can be spread out over both this and future invocations of `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.SemanticsNodeInteraction).performGesture(kotlin.Function1)`. An entire gesture starts with a `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).down(kotlin.Int,androidx.compose.ui.geometry.Offset)` event, followed by several down, move or up events, and ends with an `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).up(kotlin.Int)` or a `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).cancel()` event. Movement can be expressed with `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).moveTo(kotlin.Int,androidx.compose.ui.geometry.Offset)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).moveBy(kotlin.Int,androidx.compose.ui.geometry.Offset)` to move a single pointer at a time, or `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).movePointerTo(kotlin.Int,androidx.compose.ui.geometry.Offset)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).movePointerBy(kotlin.Int,androidx.compose.ui.geometry.Offset)` to move multiple pointers at a time. The `movePointer[To|By]` methods do not send the move event directly, use `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).move()` to send the move event. Some other methods can send a move event as well. All events, regardless the method used, will always contain the current position of *all* pointers.

Down and up events are sent at the same time as the previous event, but will send an extra move event just before the down or up event if `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).movePointerTo(kotlin.Int,androidx.compose.ui.geometry.Offset)` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).movePointerBy(kotlin.Int,androidx.compose.ui.geometry.Offset)` has been called and no move event has been sent yet. This does not happen for cancel events, but the cancel event will contain the up to date position of all pointers. Move and cancel events will advance the event time by 16 milliseconds.

Because gestures don't have to be defined all in the same `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.SemanticsNodeInteraction).performGesture(kotlin.Function1)` block, keep in mind that while the gesture is not complete, all code you execute in between blocks that progress the gesture, will be executed while imaginary fingers are actively touching the screen.

In the context of testing, it is not necessary to complete a gesture with an up or cancel event, if the test ends before it expects the finger to be lifted from the screen.

| Parameters |
|---|---|
| `pointerId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The id of the pointer, can be any number not yet in use by another pointer |
| `position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The position of the down event, in the node's local coordinate system |

### GestureScope.longClick

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:longClick)

```
fun GestureScope.[longClick](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).longClick(androidx.compose.ui.geometry.Offset,kotlin.Long))(
    position: Offset = center,
    durationMillis: Long = LongPressTimeoutMillis + 100
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs a long click gesture at the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).longClick(androidx.compose.ui.geometry.Offset,kotlin.Long)` on the associated node, or in the center if the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).longClick(androidx.compose.ui.geometry.Offset,kotlin.Long)` is omitted. By default, the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).longClick(androidx.compose.ui.geometry.Offset,kotlin.Long)` of the press is `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#LongPressTimeoutMillis()` + 100 milliseconds. The `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).longClick(androidx.compose.ui.geometry.Offset,kotlin.Long)` is in the node's local coordinate system, where (0, 0) is the top left corner of the node.

| Parameters |
|---|---|
| `position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset = center` | The position of the long click, in the node's local coordinate system. If omitted, the center position will be used. |
| `durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html = LongPressTimeoutMillis + 100` | The time between the down and the up event |

### GestureScope.move

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:move)

```
fun GestureScope.[move](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).move())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Sends a move event without updating any of the pointer positions. This can be useful when batching movement of multiple pointers together, which can be done with `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).movePointerTo(kotlin.Int,androidx.compose.ui.geometry.Offset)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).movePointerBy(kotlin.Int,androidx.compose.ui.geometry.Offset)`.

### GestureScope.moveBy

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:moveBy)

```
fun GestureScope.[moveBy](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).moveBy(androidx.compose.ui.geometry.Offset))(delta: Offset): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Sends a move event on the associated node, with the position of the default pointer moved by the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).moveBy(androidx.compose.ui.geometry.Offset)`. The default pointer has `pointerId = 0`.

If the pointer is not yet down, an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` will be thrown.

| Parameters |
|---|---|
| `delta: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The position for this move event, relative to the last sent position of the pointer. For example, \`delta = Offset(10.px, -10.px) will add 10.px to the pointer's last x-position, and subtract 10.px from the pointer's last y-position. |

### GestureScope.moveBy

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:moveBy)

```
fun GestureScope.[moveBy](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).moveBy(kotlin.Int,androidx.compose.ui.geometry.Offset))(pointerId: Int, delta: Offset): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Sends a move event on the associated node, with the position of the pointer with the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).moveBy(kotlin.Int,androidx.compose.ui.geometry.Offset)` moved by the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).moveBy(kotlin.Int,androidx.compose.ui.geometry.Offset)`.

If the pointer is not yet down, an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` will be thrown.

| Parameters |
|---|---|
| `pointerId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The id of the pointer to move, as supplied in `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).down(kotlin.Int,androidx.compose.ui.geometry.Offset)` |
| `delta: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The position for this move event, relative to the last sent position of the pointer. For example, \`delta = Offset(10.px, -10.px) will add 10.px to the pointer's last x-position, and subtract 10.px from the pointer's last y-position. |

### GestureScope.movePointerBy

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:movePointerBy)

```
fun GestureScope.[movePointerBy](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).movePointerBy(kotlin.Int,androidx.compose.ui.geometry.Offset))(pointerId: Int, delta: Offset): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`, use this instead:
>
> ```kotlin
> updatePointerBy(pointerId, delta)
> ```

Moves the position of the pointer with the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).movePointerBy(kotlin.Int,androidx.compose.ui.geometry.Offset)` by the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).movePointerBy(kotlin.Int,androidx.compose.ui.geometry.Offset)`, but does not send a move event. The move event can be sent with `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).move()`.

If the pointer is not yet down, an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` will be thrown.

| Parameters |
|---|---|
| `pointerId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The id of the pointer to move, as supplied in `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).down(kotlin.Int,androidx.compose.ui.geometry.Offset)` |
| `delta: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The position for this move event, relative to the last sent position of the pointer. For example, \`delta = Offset(10.px, -10.px) will add 10.px to the pointer's last x-position, and subtract 10.px from the pointer's last y-position. |

### GestureScope.movePointerTo

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:movePointerTo)

```
fun GestureScope.[movePointerTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).movePointerTo(kotlin.Int,androidx.compose.ui.geometry.Offset))(pointerId: Int, position: Offset): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`, use this instead:
>
> ```kotlin
> updatePointerTo(pointerId, position)
> ```

Updates the position of the pointer with the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).movePointerTo(kotlin.Int,androidx.compose.ui.geometry.Offset)` to the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).movePointerTo(kotlin.Int,androidx.compose.ui.geometry.Offset)`, but does not send a move event. The move event can be sent with `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).move()`. The `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).movePointerTo(kotlin.Int,androidx.compose.ui.geometry.Offset)` is in the node's local coordinate system, where (0.px, 0.px) is the top left corner of the node.

If the pointer is not yet down, an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` will be thrown.

| Parameters |
|---|---|
| `pointerId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The id of the pointer to move, as supplied in `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).down(kotlin.Int,androidx.compose.ui.geometry.Offset)` |
| `position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The new position of the pointer, in the node's local coordinate system |

### GestureScope.moveTo

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:moveTo)

```
fun GestureScope.[moveTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).moveTo(androidx.compose.ui.geometry.Offset))(position: Offset): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Sends a move event on the associated node, with the position of the default pointer updated to `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).moveTo(androidx.compose.ui.geometry.Offset)`. The `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).moveTo(androidx.compose.ui.geometry.Offset)` is in the node's local coordinate system, where (0, 0) is the top left corner of the node. The default pointer has `pointerId = 0`.

If the default pointer is not yet down, an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` will be thrown.

| Parameters |
|---|---|
| `position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The new position of the pointer, in the node's local coordinate system |

### GestureScope.moveTo

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:moveTo)

```
fun GestureScope.[moveTo](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).moveTo(kotlin.Int,androidx.compose.ui.geometry.Offset))(pointerId: Int, position: Offset): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Sends a move event on the associated node, with the position of the pointer with the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).moveTo(kotlin.Int,androidx.compose.ui.geometry.Offset)` updated to `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).moveTo(kotlin.Int,androidx.compose.ui.geometry.Offset)`. The `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).moveTo(kotlin.Int,androidx.compose.ui.geometry.Offset)` is in the node's local coordinate system, where (0, 0) is the top left corner of the node.

If the pointer is not yet down, an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` will be thrown.

| Parameters |
|---|---|
| `pointerId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The id of the pointer to move, as supplied in `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).down(kotlin.Int,androidx.compose.ui.geometry.Offset)` |
| `position: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The new position of the pointer, in the node's local coordinate system |

### GestureScope.percentOffset

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:percentOffset)

```
fun GestureScope.[percentOffset](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).percentOffset(kotlin.Float,kotlin.Float))(x: Float = 0.0f, y: Float = 0.0f): Offset
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Creates an `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` relative to the size of the node we're interacting with. `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).percentOffset(kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).percentOffset(kotlin.Float,kotlin.Float)` are fractions of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).width()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).height()`, between `-1` and `1`. Note that `percentOffset(1f, 1f) != bottomRight`, see `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).right()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).bottom()`.

For example: `percentOffset(.5f, .5f)` is the same as the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).center()`; `centerLeft + percentOffset(.1f, 0f)` is a point 10% inward from the middle of the left edge; and `bottomRight - percentOffset(.2f, .1f)` is a point 20% to the left and 10% to the top of the bottom right corner.

### GestureScope.pinch

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:pinch)

```
fun GestureScope.[pinch](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).pinch(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Long))(
    start0: Offset,
    end0: Offset,
    start1: Offset,
    end1: Offset,
    durationMillis: Long = 400
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs a pinch gesture on the associated node.

For each pair of start and end `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset`s, the motion events are linearly interpolated. The coordinates are in the node's local coordinate system where (0, 0) is the top left corner of the node. The default duration is 400 milliseconds.

| Parameters |
|---|---|
| `start0: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The start position of the first gesture in the node's local coordinate system |
| `end0: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The end position of the first gesture in the node's local coordinate system |
| `start1: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The start position of the second gesture in the node's local coordinate system |
| `end1: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The end position of the second gesture in the node's local coordinate system |
| `durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html = 400` | the duration of the gesture |

### GestureScope.swipe

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:swipe)

```
fun GestureScope.[swipe](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipe(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Long))(start: Offset, end: Offset, durationMillis: Long = 200): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs the swipe gesture on the associated node. The motion events are linearly interpolated between `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipe(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Long)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipe(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Long)`. The coordinates are in the node's local coordinate system, where (0, 0) is the top left corner of the node. The default duration is 200 milliseconds.

| Parameters |
|---|---|
| `start: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The start position of the gesture, in the node's local coordinate system |
| `end: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The end position of the gesture, in the node's local coordinate system |
| `durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html = 200` | The duration of the gesture |

### GestureScope.swipeDown

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:swipeDown)

```
fun GestureScope.[swipeDown](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeDown())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs a swipe down gesture along the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).centerX()` of the associated node. The gesture starts slightly below the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).top()` of the node and ends at the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).bottom()`.

### GestureScope.swipeDown

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:swipeDown)

```
@ExperimentalTestApi
fun GestureScope.[swipeDown](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeDown(kotlin.Float,kotlin.Float,kotlin.Long))(
    startY: Float = topFuzzed,
    endY: Float = bottom,
    durationMillis: Long = 200
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs a swipe down gesture along the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).centerX()` of the associated node, from `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeDown(kotlin.Float,kotlin.Float,kotlin.Long)` till `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeDown(kotlin.Float,kotlin.Float,kotlin.Long)`, taking `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeDown(kotlin.Float,kotlin.Float,kotlin.Long)` milliseconds.

| Parameters |
|---|---|
| `startY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = topFuzzed` | The y-coordinate of the start of the swipe. Must be less than or equal to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeDown(kotlin.Float,kotlin.Float,kotlin.Long)`. By default slightly below the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).top()` of the node. |
| `endY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = bottom` | The y-coordinate of the end of the swipe. Must be greater than or equal to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeDown(kotlin.Float,kotlin.Float,kotlin.Long)`. By default the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).bottom()` of the node. |
| `durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html = 200` | The duration of the swipe. By default 200 milliseconds. |

### GestureScope.swipeLeft

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:swipeLeft)

```
fun GestureScope.[swipeLeft](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeLeft())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs a swipe left gesture along the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).centerY()` of the associated node. The gesture starts slightly left of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).right()` side of the node and ends at the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).left()` side.

### GestureScope.swipeLeft

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:swipeLeft)

```
@ExperimentalTestApi
fun GestureScope.[swipeLeft](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeLeft(kotlin.Float,kotlin.Float,kotlin.Long))(
    startX: Float = rightFuzzed,
    endX: Float = left,
    durationMillis: Long = 200
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs a swipe left gesture along the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).centerY()` of the associated node, from `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeLeft(kotlin.Float,kotlin.Float,kotlin.Long)` till `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeLeft(kotlin.Float,kotlin.Float,kotlin.Long)`, taking `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeLeft(kotlin.Float,kotlin.Float,kotlin.Long)` milliseconds.

| Parameters |
|---|---|
| `startX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = rightFuzzed` | The x-coordinate of the start of the swipe. Must be greater than or equal to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeLeft(kotlin.Float,kotlin.Float,kotlin.Long)`. By default slightly left of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).right()` of the node. |
| `endX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = left` | The x-coordinate of the end of the swipe. Must be less than or equal to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeLeft(kotlin.Float,kotlin.Float,kotlin.Long)`. By default the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).left()` of the node. |
| `durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html = 200` | The duration of the swipe. By default 200 milliseconds. |

### GestureScope.swipeRight

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:swipeRight)

```
fun GestureScope.[swipeRight](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeRight())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs a swipe right gesture along the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).centerY()` of the associated node. The gesture starts slightly right of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).left()` side of the node and ends at the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).right()` side.

### GestureScope.swipeRight

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:swipeRight)

```
@ExperimentalTestApi
fun GestureScope.[swipeRight](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeRight(kotlin.Float,kotlin.Float,kotlin.Long))(
    startX: Float = leftFuzzed,
    endX: Float = right,
    durationMillis: Long = 200
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs a swipe right gesture along the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).centerY()` of the associated node, from `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeRight(kotlin.Float,kotlin.Float,kotlin.Long)` till `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeRight(kotlin.Float,kotlin.Float,kotlin.Long)`, taking `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeRight(kotlin.Float,kotlin.Float,kotlin.Long)` milliseconds.

| Parameters |
|---|---|
| `startX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = leftFuzzed` | The x-coordinate of the start of the swipe. Must be less than or equal to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeRight(kotlin.Float,kotlin.Float,kotlin.Long)`. By default slightly right of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).left()` of the node. |
| `endX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = right` | The x-coordinate of the end of the swipe. Must be greater than or equal to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeRight(kotlin.Float,kotlin.Float,kotlin.Long)`. By default the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).right()` of the node. |
| `durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html = 200` | The duration of the swipe. By default 200 milliseconds. |

### GestureScope.swipeUp

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:swipeUp)

```
fun GestureScope.[swipeUp](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeUp())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs a swipe up gesture along the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).centerX()` of the associated node. The gesture starts slightly above the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).bottom()` of the node and ends at the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).top()`.

### GestureScope.swipeUp

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:swipeUp)

```
@ExperimentalTestApi
fun GestureScope.[swipeUp](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeUp(kotlin.Float,kotlin.Float,kotlin.Long))(
    startY: Float = bottomFuzzed,
    endY: Float = top,
    durationMillis: Long = 200
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs a swipe up gesture along the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).centerX()` of the associated node, from `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeUp(kotlin.Float,kotlin.Float,kotlin.Long)` till `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeUp(kotlin.Float,kotlin.Float,kotlin.Long)`, taking `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeUp(kotlin.Float,kotlin.Float,kotlin.Long)` milliseconds.

| Parameters |
|---|---|
| `startY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = bottomFuzzed` | The y-coordinate of the start of the swipe. Must be greater than or equal to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeUp(kotlin.Float,kotlin.Float,kotlin.Long)`. By default slightly above the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).bottom()` of the node. |
| `endY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = top` | The y-coordinate of the end of the swipe. Must be less than or equal to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeUp(kotlin.Float,kotlin.Float,kotlin.Long)`. By default the `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).top()` of the node. |
| `durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html = 200` | The duration of the swipe. By default 200 milliseconds. |

### GestureScope.swipeWithVelocity

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:swipeWithVelocity)

```
fun GestureScope.[swipeWithVelocity](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).swipeWithVelocity(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float,kotlin.Long))(
    start: Offset,
    end: Offset,
    endVelocity: Float,
    durationMillis: Long = 200
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Performs the swipe gesture on the associated node, such that the velocity when the gesture is finished is roughly equal to `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeWithVelocity(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float,kotlin.Long)`. The MotionEvents are linearly interpolated between `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeWithVelocity(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float,kotlin.Long)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).swipeWithVelocity(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.Float,kotlin.Long)`. The coordinates are in the node's local coordinate system, where (0, 0) is the top left corner of the node. The default duration is 200 milliseconds.

Note that due to imprecisions, no guarantees can be made on the precision of the actual velocity at the end of the gesture, but generally it is within 0.1% of the desired velocity.

| Parameters |
|---|---|
| `start: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The start position of the gesture, in the node's local coordinate system |
| `end: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The end position of the gesture, in the node's local coordinate system |
| `endVelocity: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The velocity of the gesture at the moment it ends. Must be positive. |
| `durationMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html = 200` | The duration of the gesture in milliseconds. Must be long enough that at least 3 input events are generated, which happens with a duration of 25ms or more. |

### GestureScope.up

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+function:up)

```
fun GestureScope.[up](https://developer.android.com/reference/kotlin/androidx/compose/ui/test/GestureScope#(androidx.compose.ui.test.GestureScope).up(kotlin.Int))(pointerId: Int = 0): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Sends an up event for the pointer with the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).up(kotlin.Int)`, or the default pointer if `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).up(kotlin.Int)` is omitted, on the associated node. If any pointers have been moved with `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).movePointerTo(kotlin.Int,androidx.compose.ui.geometry.Offset)` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).movePointerBy(kotlin.Int,androidx.compose.ui.geometry.Offset)` and no move event has been sent yet, a move event will be sent right before the up event.

| Parameters |
|---|---|
| `pointerId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The id of the pointer to lift up, as supplied in `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).down(kotlin.Int,androidx.compose.ui.geometry.Offset)` |

## Extension properties

### GestureScope.bottom

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:bottom) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.bottom: Float
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the y-coordinate for the bottom 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 `height == 0`, `bottom != height`. In particular, `bottom == height - 1f`, because pixels are 0-based. If `height == 0`, `bottom == 0` too.

### GestureScope.bottomCenter

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:bottomCenter) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.bottomCenter: Offset
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the center of the bottom 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 `bottomCenter.y != height`, see `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).bottom()`.

### GestureScope.bottomLeft

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:bottomLeft) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.bottomLeft: Offset
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the bottom left corner 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 `bottomLeft.y != height`, see `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).bottom()`.

### GestureScope.bottomRight

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:bottomRight) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.bottomRight: Offset
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the bottom right corner 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 `bottomRight.x != width` and `bottomRight.y != height`, see `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).right()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).bottom()`.

### GestureScope.center

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:center) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.center: Offset
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the center 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.

### GestureScope.centerLeft

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:centerLeft) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.centerLeft: Offset
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the center of the left 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.

### GestureScope.centerRight

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:centerRight) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.centerRight: Offset
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the center of 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 `centerRight.x != width`, see `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).right()`.

### GestureScope.centerX

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:centerX) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.centerX: Float
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the x-coordinate for the center 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.

### GestureScope.centerY

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:centerY) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.centerY: Float
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the y-coordinate for the center 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.

### GestureScope.height

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:height) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.height: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Shorthand for `size.height`

### GestureScope.left

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:left) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.left: Float
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the x-coordinate for the left 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.

### GestureScope.right

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:right) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.right: Float
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

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.

### GestureScope.top

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:top) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.top: Float
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the y-coordinate for the bottom 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.

### GestureScope.topCenter

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:topCenter) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.topCenter: Offset
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the center of the top 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.

### GestureScope.topLeft

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:topLeft) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.topLeft: Offset
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the top left corner 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.

### GestureScope.topRight

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:topRight) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.topRight: Offset
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Returns the top right corner 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 `topRight.x != width`, see `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/package-summary#(androidx.compose.ui.test.GestureScope).right()`.

### GestureScope.width

Cmn Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/GestureScope.kt+symbol:width) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val GestureScope.width: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> Replaced by TouchInjectionScope. Use \`performTouchInput\` instead of \`performGesture\`

Shorthand for `size.width`