mirror of https://github.com/M66B/FairEmail.git
Fixed original view scrolling issues
This commit is contained in:
parent
dbd88712b7
commit
65caca4bab
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue