compose-collapsing-toolbar icon indicating copy to clipboard operation
compose-collapsing-toolbar copied to clipboard

Flashes and jumps when swiping too slowly

Open wilinz opened this issue 3 years ago • 6 comments
trafficstars

https://user-images.githubusercontent.com/59408438/178977723-84bbf777-310b-45d6-8562-58997802e9c0.mp4

wilinz avatar Jul 14 '22 11:07 wilinz

Could you provide minimal reproducible sample code?

onebone avatar Jul 14 '22 14:07 onebone

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

wilinz avatar Jul 14 '22 15:07 wilinz

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)

onebone avatar Jul 18 '22 15:07 onebone

Use webview test

wilinz avatar Jul 18 '22 15:07 wilinz

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

onebone avatar Jul 18 '22 15:07 onebone

see https://github.com/wilinz/CollapsingToolbarTest

wilinz avatar Jul 18 '22 16:07 wilinz