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


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


<h2 id="awaiteachgesture-block">awaitEachGesture</h2>

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


```kotlin
suspend fun PointerInputScope.awaitEachGesture(block: suspend AwaitPointerEventScope.() -> Unit)
```


Repeatedly calls `block` to handle gestures. If there is a `CancellationException`, it will wait
until all pointers are raised before another gesture is detected, or it exits if `isActive` is
`false`.

`block` is run within `PointerInputScope.awaitPointerEventScope` and will loop entirely within
the `AwaitPointerEventScope` so events will not be lost between gestures.