Fixed original view scrolling issues

This commit is contained in:
M66B 2023-04-06 21:41:32 +02:00
parent dbd88712b7
commit 65caca4bab
1 changed files with 14 additions and 12 deletions

View File

@ -316,6 +316,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
intercept = (yoff > 0 || dy >= 0) && (yoff < bottom || dy <= 0);
}
if (!intercept) {
int xrange = computeHorizontalScrollRange();
int xextend = computeHorizontalScrollExtent();
boolean canScrollHorizontal = (xrange > xextend);
@ -330,6 +331,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
lastXoff = xoff;
}
}
}
getParent().requestDisallowInterceptTouchEvent(intercept || event.getPointerCount() > 1);
lastX = event.getX();