Skip to content

Commit 2d4bcfa

Browse files
committed
Merge pull request #22 from gelldur/fix_container_scroll
Fix ScrollView intercepting drag gestures
2 parents 548332d + f56e43b commit 2d4bcfa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/src/main/java/com/jmedeisis/draglinearlayout/DragLinearLayout.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ private void startDetectingDrag(View child) {
362362
draggableChildren.get(position).endExistingAnimation();
363363

364364
draggedItem.startDetectingOnPossibleDrag(child, position);
365+
if (containerScrollView != null) {
366+
containerScrollView.requestDisallowInterceptTouchEvent(true);
367+
}
365368
}
366369

367370
private void startDrag() {

0 commit comments

Comments
 (0)