Skip to content

Commit 37457ed

Browse files
author
mhalloul
committed
Fixing scrolling map inside a scrollView
1 parent fe643c1 commit 37457ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

android/lib/src/main/java/com/airbnb/android/react/maps/AirMapView.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,16 +529,19 @@ public boolean dispatchTouchEvent(MotionEvent ev) {
529529

530530
switch (action) {
531531
case (MotionEvent.ACTION_DOWN):
532+
this.getParent().requestDisallowInterceptTouchEvent(true);
532533
isTouchDown = true;
533534
break;
534535
case (MotionEvent.ACTION_MOVE):
535536
startMonitoringRegion();
536537
break;
537538
case (MotionEvent.ACTION_UP):
539+
this.getParent().requestDisallowInterceptTouchEvent(false);
538540
isTouchDown = false;
539541
break;
540542
}
541-
return super.dispatchTouchEvent(ev);
543+
super.dispatchTouchEvent(ev);
544+
return true;
542545
}
543546

544547
// Timer Implementation

0 commit comments

Comments
 (0)