scrollBy method
Move the scrolled position of this view.
The parameters x
and y
specify the amount of WebView pixels to scroll by.
Implementation
@override
Future<void> scrollBy(int x, int y) async {
if (jsBridge.hasReady) {
await jsBridge.evalJavaScript('window.scrollBy(x, y)');
}
}