Loading core/java/android/widget/HorizontalScrollView.java +5 −3 Original line number Diff line number Diff line Loading @@ -511,8 +511,10 @@ public class HorizontalScrollView extends FrameLayout { switch (action & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: { final float x = ev.getX(); mIsBeingDragged = true; mIsBeingDragged = getChildCount() != 0; if (!mIsBeingDragged) { return false; } /* * If being flinged and user touches, stop the fling. isFinished Loading @@ -523,7 +525,7 @@ public class HorizontalScrollView extends FrameLayout { } // Remember where the motion event started mLastMotionX = x; mLastMotionX = ev.getX(); mActivePointerId = ev.getPointerId(0); break; } Loading core/java/android/widget/ScrollView.java +5 −3 Original line number Diff line number Diff line Loading @@ -521,8 +521,10 @@ public class ScrollView extends FrameLayout { switch (action & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: { final float y = ev.getY(); mIsBeingDragged = true; mIsBeingDragged = getChildCount() != 0; if (!mIsBeingDragged) { return false; } /* * If being flinged and user touches, stop the fling. isFinished Loading @@ -537,7 +539,7 @@ public class ScrollView extends FrameLayout { } // Remember where the motion event started mLastMotionY = y; mLastMotionY = ev.getY(); mActivePointerId = ev.getPointerId(0); break; } Loading Loading
core/java/android/widget/HorizontalScrollView.java +5 −3 Original line number Diff line number Diff line Loading @@ -511,8 +511,10 @@ public class HorizontalScrollView extends FrameLayout { switch (action & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: { final float x = ev.getX(); mIsBeingDragged = true; mIsBeingDragged = getChildCount() != 0; if (!mIsBeingDragged) { return false; } /* * If being flinged and user touches, stop the fling. isFinished Loading @@ -523,7 +525,7 @@ public class HorizontalScrollView extends FrameLayout { } // Remember where the motion event started mLastMotionX = x; mLastMotionX = ev.getX(); mActivePointerId = ev.getPointerId(0); break; } Loading
core/java/android/widget/ScrollView.java +5 −3 Original line number Diff line number Diff line Loading @@ -521,8 +521,10 @@ public class ScrollView extends FrameLayout { switch (action & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: { final float y = ev.getY(); mIsBeingDragged = true; mIsBeingDragged = getChildCount() != 0; if (!mIsBeingDragged) { return false; } /* * If being flinged and user touches, stop the fling. isFinished Loading @@ -537,7 +539,7 @@ public class ScrollView extends FrameLayout { } // Remember where the motion event started mLastMotionY = y; mLastMotionY = ev.getY(); mActivePointerId = ev.getPointerId(0); break; } Loading