KevinnZou / compose-webview-multiplatform

WebView for JetBrains Compose Multiplatform
https://kevinnzou.github.io/compose-webview-multiplatform/
Apache License 2.0
530 stars 69 forks source link

New Feature: Add a Y offset listener or callback #200

Open grandleaf opened 4 months ago

grandleaf commented 4 months ago

The reason for this feature is the WebView cannot scroll down if it is be put into a PullToRefresh. Therefore, we need a method to disable/enable PullToRefresh according to the Y offset of the scrolling. See: https://stackoverflow.com/questions/24923021/swiperefreshlayout-tab-layout-webview-cant-scroll-up

KevinnZou commented 4 months ago

@grandleaf Thanks for your suggestion! We will add it to our plan. You are also welcome to submit a PR for it. You just need to add a property in the WebViewState and update it on each platform.