Closed open9527 closed 3 years ago
有用到BVP吗?你这是VP2的滑动冲突吧?
不是 BVP得 ,用 private boolean mClampedY;
@Override
public boolean onTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
super.requestDisallowInterceptTouchEvent(!mClampedY);
}
return super.onTouchEvent(event);
}
@Override
protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) {
LogUtils.i(TAG, "onOverScrolled: " + clampedY);
mClampedY = clampedY;
if (!clampedY) {
super.requestDisallowInterceptTouchEvent(true);
}
super.onOverScrolled(scrollX, scrollY, clampedX, clampedY);
}
可以处理了,谢谢
垂直得 ViewPage2 得fragment中嵌套WebView WebView 无法滑动