UI 适配
This commit is contained in:
@@ -1946,14 +1946,14 @@ public class OrientedViewPager extends ViewGroup {
|
||||
Log.v(TAG, "Moved x to " + x + "," + y + " diff=" + xDiff + "," + yDiff);
|
||||
}
|
||||
|
||||
if (dx != 0 && !isGutterDrag(mLastMotionX, dx) &&
|
||||
canScroll(this, false, (int) dx, (int) x, (int) y)) {
|
||||
// Nested view has scrollable area under this point. Let it be handled there.
|
||||
mLastMotionX = x;
|
||||
mLastMotionY = y;
|
||||
mIsUnableToDrag = true;
|
||||
return false;
|
||||
}
|
||||
//if (dx != 0 && !isGutterDrag(mLastMotionX, dx) &&
|
||||
// canScroll(this, false, (int) dx, (int) x, (int) y)) {
|
||||
// // Nested view has scrollable area under this point. Let it be handled there.
|
||||
// mLastMotionX = x;
|
||||
// mLastMotionY = y;
|
||||
// mIsUnableToDrag = true;
|
||||
// return false;
|
||||
//}
|
||||
if (xDiff > mTouchSlop && xDiff * 0.5f > yDiff) {
|
||||
if (DEBUG) Log.v(TAG, "Starting drag!");
|
||||
mIsBeingDragged = true;
|
||||
|
||||
Reference in New Issue
Block a user