Created
June 28, 2019 11:48
-
-
Save saddahussain/35aa00e0ae67db54ca5ea96434e3a3fe to your computer and use it in GitHub Desktop.
Maps zoom issue inside scrollview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mapView.setOnTouchListener { v, event -> | |
when (event?.action) { | |
MotionEvent.ACTION_MOVE -> | |
scrollView.requestDisallowInterceptTouchEvent(true) | |
MotionEvent.ACTION_UP, MotionEvent.ACTION_CANCEL -> | |
scrollView.requestDisallowInterceptTouchEvent(false) | |
} | |
mapView.onTouchEvent(event) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment