Skip to content

Commit 59dd356

Browse files
committed
Fix pointer issue
1 parent 3f09d41 commit 59dd356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,9 +779,9 @@ public boolean onTouchEvent(MotionEvent ev) {
779779

780780
private void determineDrag(MotionEvent ev) {
781781
final int activePointerId = mActivePointerId;
782+
final int pointerIndex = getPointerIndex(ev, activePointerId);
782783
if (activePointerId == INVALID_POINTER)
783784
return;
784-
final int pointerIndex = this.getPointerIndex(ev, activePointerId);
785785
final float x = MotionEventCompat.getX(ev, pointerIndex);
786786
final float dx = x - mLastMotionX;
787787
final float xDiff = Math.abs(dx);

0 commit comments

Comments
 (0)