---
title: "cancel"
description: "Sends a cancel event to cancel the current gesture. The cancel event contains the current
position of all active pointers."
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.cancel() = delegateScope.touch { cancel() }
```


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



