tobiasrohloff / NestedScrollWebView

An Android WebView that implements NestedScrollingChild, in order to use it with CoordinatorLayout and AppBarLayout.
Other
334 stars 81 forks source link

Does not work well with SwipeRefreshLayout #13

Closed Mygod closed 2 years ago

Mygod commented 4 years ago

I did a bit of digging and implemented my own that works somewhat (swiping up works but seems slower): https://gist.github.com/Mygod/65dae294c75b6c36133d4ae7c08a662c

Related issue at Google: https://issuetracker.google.com/issues/148731508

Mygod commented 4 years ago

Basically, as suggested by Google staff, you need to hijack overScrollBy to extract dxUnconsumed and dyUnconsumed, or NestedScrollingChild*. Also they do not have plans to implement NestedScrollingParent for WebViewProvider.