I am working on Google maps api. Currently when we try to drag the marker, we have to hold for few seconds and then mapView goes up by like few points then we can drag the marker. I would like to change this behavior.
Can I override the minimumPressDuration
of UILongPressGestureRecognizer
in mapView? Like this in some way:
for (id gestureRecognizer in mapView.gestureRecognizers)
{
if ([gestureRecognizer isKindOfClass:[UILongPressGestureRecognizer class]])
{
gestureRecognizer.minimumPressDuration = 0.0f;
}
}
Basically I don't want to hold marker for few second and then start dragging it, it should be drag-able instantaneousl and Map should not move during a drag. How do I achieve this?