Skip to content

Commit 26e2e67

Browse files
committed
Merge pull request #535 from cody-young-move/fixed_edge_drag_issue
Dragging from close to the edge of the panel doesn't work as expected.
2 parents 902b10f + 5134a97 commit 26e2e67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/com/sothree/slidinguppanel/ViewDragHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ public void processTouchEvent(MotionEvent ev) {
11461146
break;
11471147
}
11481148

1149-
final View toCapture = findTopChildUnder((int) x, (int) y);
1149+
final View toCapture = findTopChildUnder((int) mInitialMotionX[pointerId], (int) mInitialMotionY[pointerId]);
11501150
if (checkTouchSlop(toCapture, dx, dy) &&
11511151
tryCaptureViewForDrag(toCapture, pointerId)) {
11521152
break;

0 commit comments

Comments
 (0)