---
title: "up"
description: "Sends an up event for the pointer with the given [pointerId], or the default pointer if
[pointerId] is omitted, on the associated node. If any pointers have been moved with
[movePointerTo] or [movePointerBy] and no move event has been sent yet, a move event will be sent
right before the up event."
type: "function"
---

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


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


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

```kotlin
fun GestureScope.up(pointerId: Int = 0) = delegateScope.touch { up(pointerId) }
```


Sends an up event for the pointer with the given `pointerId`, or the default pointer if
`pointerId` is omitted, on the associated node. If any pointers have been moved with
`movePointerTo` or `movePointerBy` and no move event has been sent yet, a move event will be sent
right before the up event.

#### Parameters

| | |
| --- | --- |
| pointerId | The id of the pointer to lift up, as supplied in `down` |




