Skip to content

Commit

Permalink
Make ImageView Scroll
Browse files Browse the repository at this point in the history
The BottomSheetBehaviorGoogleMapsLike now scroll the content of the BottomSheet for a touch outside of its bounds. So if the user is scrolling the ImageView which is outside of the BottomSheet, it will scroll the content of the bottomsheet anyway. So the image view will scroll accordingly.
  • Loading branch information
Paul-Marie Tetedoie committed Jul 27, 2016
1 parent dfbfb86 commit b66ef17
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -266,11 +266,11 @@ public boolean onInterceptTouchEvent(CoordinatorLayout parent, V child, MotionEv
case MotionEvent.ACTION_DOWN:
int initialX = (int) event.getX();
mInitialY = (int) event.getY();
View scroll = mNestedScrollingChildRef.get();
if (scroll != null && parent.isPointInChildBounds(scroll, initialX, mInitialY)) {
//View scroll = mNestedScrollingChildRef.get();
//if (scroll != null && parent.isPointInChildBounds(scroll, initialX, mInitialY)) {
mActivePointerId = event.getPointerId(event.getActionIndex());
mTouchingScrollingChild = true;
}
//}
mIgnoreEvents = mActivePointerId == MotionEvent.INVALID_POINTER_ID &&
!parent.isPointInChildBounds(child, initialX, mInitialY);
break;
Expand Down

0 comments on commit b66ef17

Please sign in to comment.