Update View 体系相关口水话.md

master
Omooo 4 years ago
parent adf2cd1008
commit d58b163555
  1. 4
      blogs/Android/口水话/View 体系相关口水话.md

@ -104,10 +104,10 @@ Vsync 信号可以理解为底层硬件的一个消息脉冲,它每 16ms 发
case MotionEvent.ACTION_DOWN:
dx = (int) ev.getRawX();
dy = (int) ev.getRawY();
getParent().requestDisallowInterceptTouchEvent(false);
getParent().requestDisallowInterceptTouchEvent(true);
break;
case MotionEvent.ACTION_MOVE:
if (Math.abs(dx - ev.getRawX()) > Math.abs(dy - ev.getRawY()) + 80) {
if (Math.abs(dx - ev.getRawX()) > Math.abs(dy - ev.getRawY()) + 30) {
getParent().requestDisallowInterceptTouchEvent(false);
} else {
getParent().requestDisallowInterceptTouchEvent(true);

Loading…
Cancel
Save