compose-collapsing-toolbar
compose-collapsing-toolbar copied to clipboard
Flashes and jumps when swiping too slowly
https://user-images.githubusercontent.com/59408438/178977723-84bbf777-310b-45d6-8562-58997802e9c0.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.
https://user-images.githubusercontent.com/3233503/179551230-7c48d18b-87cb-420f-8969-ab40bc5cc895.mp4
see https://github.com/wilinz/CollapsingToolbarTest