horizontalPagerSwipeOverride

fun Modifier.horizontalPagerSwipeOverride(pagerState: PagerState, enabled: Boolean = true, onIntercepted: () -> Unit? = null): Modifier

Drives horizontal drag and settling in one PagerState.scroll mutation. New touches take over at the displayed position; vertical gestures stay with children.

Set HorizontalPager's userScrollEnabled to false and its pageNestedScrollConnection to PagerGestureNestedScrollConnection while enabled to prevent competing gesture recognition.