Skip to content
Discussion options

You must be logged in to vote

As I mentioned, scrollAnimation = PagesScrollAnimation.Disabled only disables the automatic animation, e.g. when you change the selected index programmatically. To disable swiping you need to pass userScrollEnabled = false to HorizontalPager.

ChildPages(
    ...,
    pager = { pagerModifier, pagerState, key, pageContent ->
        HorizontalPager(
            modifier = pagerModifier,
            state = pagerState,
            key = key,
            userScrollEnabled = false,
            pageContent = pageContent,
        )
    },
)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zokirjonkarimov
Comment options

@arkivanov
Comment options

Answer selected by zokirjonkarimov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #974 on January 13, 2026 20:53.