[android] fix sending more than once double tap event on a single double tap gesture (#10854)
This commit is contained in:
@@ -344,13 +344,12 @@ final class MapGestureDetector {
|
||||
// Zoom in on gesture
|
||||
transform.zoom(true, new PointF(e.getX(), e.getY()));
|
||||
}
|
||||
MapboxTelemetry.getInstance().pushEvent(MapboxEventWrapper.buildMapClickEvent(
|
||||
getLocationFromGesture(e.getX(), e.getY()),
|
||||
MapboxEvent.GESTURE_DOUBLETAP, transform));
|
||||
break;
|
||||
}
|
||||
|
||||
MapboxTelemetry.getInstance().pushEvent(MapboxEventWrapper.buildMapClickEvent(
|
||||
getLocationFromGesture(e.getX(), e.getY()),
|
||||
MapboxEvent.GESTURE_DOUBLETAP, transform));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user