Searched refs:xDiff (Results 1 – 5 of 5) sorted by relevance
93 final float xDiff = Math.abs(x - mLastMotionX); 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()
168 float xDiff = Math.abs(event.getX() - mLastTouchX);170 if (xDiff >= mMaxMovementAllowed || yDiff >= mMaxMovementAllowed) {
136 final int xDiff = (int) Math.abs(x - mLastMotionX); in determineDraggingStart() local141 boolean isUpwardMotion = (yDiff / (float) xDiff) > mDragSlopeThreshold; in determineDraggingStart()
1104 final int xDiff = (int) Math.abs(x - mLastMotionX); in determineScrollingStart() local1108 boolean xPaged = xDiff > mPagingTouchSlop; in determineScrollingStart()1109 boolean xMoved = xDiff > touchSlop; in determineScrollingStart()
1442 final int xDiff = (int) Math.abs(x - mLastMotionX); in determineScrollingStart() local1445 boolean xMoved = xDiff > touchSlop; in determineScrollingStart()