I'm trying to figure out how to make a custom `Laz...
# compose
r
I'm trying to figure out how to make a custom
LazyLayout
work with nested scrolling and in particular supporting
Modifier.pullRefresh(pullRefreshState)
and
Modifier.nestedScroll(TopAppBarDefaults.enterAlwaysScrollBehavior().nestedScrollConnection)
modifiers. Right now, the
LazyLayout
uses
Modifier.pointerInput()
for drag detection, should something else be used? I want to see if I can tweak this library called MinaBox to handle nested scrolling.
a
LazyLayout
itself doesn't have any gesture detection. If you are creating a lazy layout yourself, you can dispatch nested scroll delta manually, or use
Modifier.scrollable()
if the layout can only be scroll on a single axis. In this case, you can only ask the author of that library to support nested scroll.
r
Hey thanks for the reply. It's actually a table that scrolls on both axis.
you can dispatch nested scroll delta manually
Are you aware of any existing public implementation of this that I could look at?
r
thanks!