Should/could nesting scrolling interop between compose and non-compose content? A colleague of mine has nested Compose content inside of an existing screen View-based bottom sheet, and is only finding out after building it that scrolling is completely broken
m
matvei
05/19/2021, 5:09 PM
It definitely should ideally! Unfortunately, this won't be ready for 1.0, but it's actually should be doable with the public API with a bit of work
👍 1
g
grandstaish
05/19/2021, 5:23 PM
Any workarounds possible? Or is his best bet to rewrite without compose?
m
matvei
05/19/2021, 5:41 PM
The only workaround I can think of is to insert the
Modifier.nestedScroll
at the root of the compose hierarchy and manually proxy nested scroll calls to the bottom sheet or any other NestedScrollParent that they have in views
g
grandstaish
05/19/2021, 8:57 PM
thanks Matvei, that's worth a shot
m
matvei
05/20/2021, 11:32 AM
No problem, let me know how it went 🙂
g
grandstaish
05/20/2021, 4:12 PM
We got it to work pretty well lol. Very hacky, but hey, it's hopefully a temporary solution