Closed Doomsdayrs closed 1 year ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Unfortunately Accompanist WebView has been deprecated and won't be supported going forwards. I am closing this issue. We recommend you fork the implemenation here and customise it to your needs. For more information please see our update blog
Description
WebView
loading does not finish on the firstFinished
, but a few a few state changes later. As the size of theWebView
inflates massively then drops down.This means additional code must be used to try and wait for the
WebView
to settle down before performing scrolls.Steps to reproduce
ScrollState
onto webview.WebViewState
onto webview.LaunchedEffect
watchingScrollState.maxValue
andWebViewState.loadingState
and print out the values.Delay Count
and thea
/b
are tests for additional code to await the web view settling down.Expected behavior
WebViewState.loadingState
isFinished
only after the view settles down.Additional context
https://gitlab.com/shosetsuorg/shosetsu/-/blob/development/android/src/main/java/app/shosetsu/android/ui/reader/page/HTMLPage.kt