[android] #4183 - Moving QuickZoom event recording to single finger, double tap, and drag processing

This commit is contained in:
Brad Leege
2016-03-08 14:55:08 -06:00
parent c2cd9335e9
commit 9c4192411a

View File

@@ -1505,7 +1505,6 @@ public class MapView extends FrameLayout {
if (mMapboxMap.getTrackingSettings().isLocationTrackingDisabled()) {
// Zoom in on gesture
zoom(true, e.getX(), e.getY());
trackGestureEvent(MapboxEvent.GESTURE_QUICK_ZOOM, e.getX(), e.getY());
} else {
// Zoom in on user location view
PointF centerPoint = mUserLocationView.getMarkerScreenPoint();
@@ -1752,6 +1751,7 @@ public class MapView extends FrameLayout {
PointF centerPoint = mUserLocationView.getMarkerScreenPoint();
mNativeMapView.scaleBy(detector.getScaleFactor(), centerPoint.x / mScreenDensity, centerPoint.y / mScreenDensity);
}
trackGestureEvent(MapboxEvent.GESTURE_QUICK_ZOOM, detector.getFocusX(), detector.getFocusY());
}
return true;
}