https://kotlinlang.org logo
#compose
Title
# compose
d

dimsuz

08/10/2021, 4:46 PM
I have a horizontal
LazyRow
inside a particular page on an accompanyist
Pager
and while this lazy row is being horizontally scrolled I want to disable horizontal swipe of `Pager`'s pages. How can this be achieved?
2
r

Ravi

08/10/2021, 9:29 PM
I’ve tried adding
lazyRow
to HorizontalPagerTabsSample, swipe happens only after reaching to start/end of
lazyRow
. If you want to disable
Pager
swipe completely, u can toggle
dragEnabled
of
Pager
as per your use case
b

Berkeli Alashov

08/11/2021, 12:46 AM
That seems to be correct behavior but you can use
dragEnabled
param of
HorizontalPager
based on some state.
d

dimsuz

08/11/2021, 11:06 AM
Thank you!