Xamarin.Forms.GoogleMaps icon indicating copy to clipboard operation
Xamarin.Forms.GoogleMaps copied to clipboard

Ability to allow Maps to recieve proper touch inside scrollview - Android

Open LeoJHarris opened this issue 5 years ago • 6 comments

Issue relating too: https://github.com/amay077/Xamarin.Forms.GoogleMaps/issues/336

Using this library with the map nested inside a ScrollView, the scrolling of the ScrollView is badly interfering with the map.

Using the below code resolves the issue:

public override bool DispatchTouchEvent(MotionEvent e)
       {
           base.Parent.RequestDisallowInterceptTouchEvent(true);
           // Handle MapView's touch events.
           return base.DispatchTouchEvent(e);
       }

I am proposing that we set some flag or something that allows Devs to disallow touch on the ScrollView when the touch is being made on the map. It might simple override or not override the above method

iOS didnt seem to have this issue.

LeoJHarris avatar Oct 07 '18 22:10 LeoJHarris

This looks like a simple solution. Any reason why this issue is still not fixed?

kernshen avatar Mar 05 '19 02:03 kernshen

Any news on this issue?

daanvc avatar May 02 '19 12:05 daanvc

Still awaiting an elegant fix for this

keitheyre avatar Sep 10 '19 15:09 keitheyre

@amay077 bump. Can this be implemented in the repo?

LeoJHarris avatar Sep 10 '19 22:09 LeoJHarris

ping 👋

nor0x avatar Jun 30 '20 12:06 nor0x

bump :(

lpv-1902 avatar Nov 27 '23 08:11 lpv-1902