Skip to content

Commit 3f09d41

Browse files
author
jfeinstein10
committed
Another index fix
1 parent 29547a0 commit 3f09d41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/com/slidingmenu/lib/CustomViewAbove.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,8 @@ public boolean onInterceptTouchEvent(MotionEvent ev) {
637637
mActivePointerId = MotionEventCompat.getPointerId(ev, index);
638638
if (mActivePointerId == INVALID_POINTER)
639639
break;
640-
mLastMotionX = mInitialMotionX = MotionEventCompat.getX(ev, mActivePointerId);
641-
mLastMotionY = MotionEventCompat.getY(ev, mActivePointerId);
640+
mLastMotionX = mInitialMotionX = MotionEventCompat.getX(ev, index);
641+
mLastMotionY = MotionEventCompat.getY(ev, index);
642642
if (thisTouchAllowed(ev)) {
643643
mIsBeingDragged = false;
644644
mIsUnableToDrag = false;

0 commit comments

Comments
 (0)