Disable nested scrolling for a child Compose

Viewed 224

I have a Scrollable column, that has inside it another Scrollable column, and a MapView.

As the default behaviour of Compose is to allow Nested Scrolling, this makes it somewhat difficult to control these 2 children that can also consume gestures.

I want to make it so that when these children receive a pointer event, they handle it themselves, and never pass anything to the parent.

No unconsumed values or what so. As long as the pointer event is in their bounds, they consume it all.

How can I achieve that?

I've tried to look into NestedScrolling, but that gives more control over the parent, not the children.

And some search about Pointer Events lead me to one solution that disabled all gestures inside a child. But I want the child to consume the gestures and use them, not dispose of them.

0 Answers
Related