onebone/compose-collapsing-toolbar

Flashes and jumps when swiping too slowly

Opened this issue · 6 comments

TRIM_20220714_195902-1.mp4

Could you provide minimal reproducible sample code?

CollapsingToolbarScaffold(
    state = rememberCollapsingToolbarScaffoldState(), // provide the state of the scaffold
    toolbar = {
        TopAppBar{
...
}
    }
) {
    AndroidView(
factory={context->
NestedWebView(context)
}
)
}

I can't reproduce your issue on my environment with following layout hierarchy:

CollapsingToolbarScaffold
└ AndroidView(with modifier = verticalScroll)
   └ RecyclerView (with 100 items)     -- also tested with WebView 

May I ask you to give me a sample that I can immediately confirm your issue? (Preferably with compose-only layout, if possible)

Use webview test

I have tested with WebView with scrollable contents, namely https://stackoverflow.com/, but it looks to work fine.

Screen_Recording_20220719-004935_Collapsing.Toolbar.1.mp4