onScrollChanged property
Event fired when the WebView
scrolls.
x
represents the current horizontal scroll origin in pixels.
y
represents the current vertical scroll origin in pixels.
NOTE for Web: this event will be called only if the iframe has the same origin.
NOTE for MacOS: this method is implemented with using JavaScript.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebView.onScrollChanged)
- iOS (Official API - UIScrollViewDelegate.scrollViewDidScroll)
- Web (Official API - Window.onscroll)
- MacOS
Implementation
final void Function(T controller, int x, int y)? onScrollChanged;