Reputation: 717
I try to implement pull refresh with big (long) scrollable webview.
val pullRefreshState =
rememberPullRefreshState(refreshing = isRefreshing,
onRefresh = {isRefreshing = !isRefreshing
timerForReloadState += 1})
Surface {
LazyColumn(Modifier.pullRefresh(pullRefreshState)) {
item {
WebView(
state = urlState,
onCreated = { webView ->
webView.settings.javaScriptEnabled = true
},
client = remember { webViewClient },
chromeClient = remember { chromeViewClient }
)
}
}
but I have a problem, webpage has scrollable and not scrollable content as sticky navigation top but then I apply additional scrollable field as (LazyColumn) the all webpage becomes scrollable. It seems, that view has two scroll, webpage and lazy column scroll, and then user scroll the content, he scrolls lazy column, and not page scroll.
Upvotes: 0
Views: 178