forked from organicmaps/organicmaps
[android] Fixed Place Page gesture detection.
This commit is contained in:
parent
401aa715a6
commit
e91b246daf
1 changed files with 3 additions and 1 deletions
|
@ -82,6 +82,7 @@ class BottomPlacePageAnimationController extends BasePlacePageAnimationControlle
|
|||
mIsDragging = false;
|
||||
mIsGestureFinished = false;
|
||||
mDownCoord = event.getY();
|
||||
mGestureDetector.onTouchEvent(event);
|
||||
break;
|
||||
case MotionEvent.ACTION_MOVE:
|
||||
if (!mIsGestureStartedInsideView)
|
||||
|
@ -93,7 +94,8 @@ class BottomPlacePageAnimationController extends BasePlacePageAnimationControlle
|
|||
|
||||
break;
|
||||
case MotionEvent.ACTION_UP:
|
||||
if (mIsGestureStartedInsideView)
|
||||
final boolean isInside = UiUtils.isViewTouched(event, mDetailsScroll);
|
||||
if (isInside && mIsGestureStartedInsideView)
|
||||
mGestureDetector.onTouchEvent(event);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue