处理专区事件拦截

This commit is contained in:
张玉久
2020-05-26 17:21:43 +08:00
parent 66abdb1eed
commit a9f4620d8b

View File

@ -81,6 +81,12 @@ public class NestedScrollWebView2 extends DWebView implements NestedScrollingChi
mMaximumVelocity = configuration.getScaledMaximumFlingVelocity();
}
@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
getParent().requestDisallowInterceptTouchEvent(true);
return super.dispatchTouchEvent(ev);
}
@Override
public void requestDisallowInterceptTouchEvent(boolean disallowIntercept) {
if (disallowIntercept) {