Scroll list on overscolling web view

This commit is contained in:
M66B
2020-08-22 10:00:11 +02:00
parent 983c74f2e9
commit 7acee1304b
3 changed files with 29 additions and 0 deletions

View File

@@ -145,6 +145,13 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
this.intf.onSizeChanged(w, h, ow, oh);
}
@Override
protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) {
super.onOverScrolled(scrollX, scrollY, clampedX, clampedY);
Log.i("Over scrolled=" + scrollX + "/" + scrollY + " clamped=" + clampedX + "/" + clampedY);
intf.onOverScrolled(scrollX, scrollY, clampedX, clampedY);
}
@Override
public void onDownloadStart(
String url, String userAgent, String contentDisposition, String mimetype, long contentLength) {
@@ -208,6 +215,8 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
void onScrollChange(int scrollX, int scrollY);
void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY);
boolean onOpenLink(String url);
}
}