Searched refs:yDiff (Results 1 – 5 of 5) sorted by relevance
94 final float yDiff = Math.abs(y - mLastMotionY); in onTouchEvent() local96 if (xDiff > mTouchSlop && xDiff > yDiff) { // Swiping left and right in onTouchEvent()98 } else if (yDiff > mTouchSlop && yDiff > xDiff) { //Swiping up and down in onTouchEvent()
258 final float yDiff = Math.abs(event.getY() - mLastTouchY); in onTouch() local259 if (xDiff >= mTouchSlop || yDiff >= mTouchSlop) { in onTouch()
137 final int yDiff = (int) Math.abs(y - mLastMotionY); in determineDraggingStart() local140 boolean yMoved = yDiff > touchSlop; in determineDraggingStart()141 boolean isUpwardMotion = (yDiff / (float) xDiff) > mDragSlopeThreshold; in determineDraggingStart()
1105 final int yDiff = (int) Math.abs(y - mLastMotionY); in determineScrollingStart() local1110 boolean yMoved = yDiff > touchSlop; in determineScrollingStart()
404 final int yDiff = (int) Math.abs(y - mLastMotionY); in onInterceptTouchEvent() local405 if (yDiff > mTouchSlop) { in onInterceptTouchEvent()