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


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


<h2 id="horizontaldrag-pointerid-ondrag">horizontalDrag</h2>

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


```kotlin
suspend fun AwaitPointerEventScope.horizontalDrag(
    pointerId: PointerId,
    onDrag: (PointerInputChange) -> Unit,
): Boolean
```


Reads horizontal position change events for `pointerId` and calls `onDrag` for every change in
position. If `pointerId` is raised, a new pointer is chosen from those that are down and if none
exist, the method returns. This does not wait for touch slop.

Example Usage: