Slide 7
Slide 7 text
相互運用上の注意点
スクロール消費量と消費されなかった量を送る
internal class NestedScrollInteropConnection(...) : NestedScrollConnection() {
private val nestedScrollChildHelper = NestedScrollingChildHelper(...)
...
override fun onPreScroll(...): Offset {
if(nestedScrollChildHelper.startNestedScroll(...)) {
...
nestedScrollChildHelper.dispatchNestedScroll(
composeToViewOffset(consumed.x),
composeToViewOffset(consumed.y),
composeToViewOffset(available.x),
composeToViewOffset(available.y),
...
)