[android] #2861 - double tap zoom gesture while tracking mode is enabled

This commit is contained in:
Tobrun
2015-10-29 16:26:58 +01:00
parent 01274a5b40
commit 6f7c53900d

View File

@@ -2306,7 +2306,13 @@ public final class MapView extends FrameLayout {
// Single finger double tap
// Zoom in
zoom(true, e.getX(), e.getY());
if (mUserLocationView.getMyLocationTrackingMode() == MyLocationTracking.TRACKING_NONE) {
// Zoom in on gesture
zoom(true, e.getX(), e.getY());
} else {
// Zoom in on center map
zoom(true, getWidth() / 2, getHeight() / 2);
}
return true;
}