Relative Content

Tag Archive for androidkotlinandroid-jetpack-composepull-to-refreshhorizontal-pager

Resolving scroll conflict: PullToRefresh (vertical) vs. Horizontal Pager in Jetpack Compose

I’m developing a screen in Jetpack Compose that combines two scrolling components: a PullToRefresh for vertical scrolling and an ImageSlider implemented using HorizontalPager for horizontal scrolling. The PullToRefresh is going to allow users to refresh the screen content by pulling down.
However, I’m encountering an issue where the vertical scroll gesture for the PullToRefresh is not being detected. As a result, I’m unable to trigger the refresh operation by pulling down on the screen. The horizontal scrolling in the ImageSlider works as expected, but it seems to be interfering with the vertical scroll detection.