Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] fix sending more than once double tap event on a single dou…
Browse files Browse the repository at this point in the history
…ble tap gesture (#10854) (#10855)
  • Loading branch information
Guardiola31337 committed Jan 8, 2018
1 parent dcd7019 commit 7f2f40f
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,13 +344,12 @@ public boolean onDoubleTapEvent(MotionEvent e) {
// 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;
}

Expand Down

0 comments on commit 7f2f40f

Please sign in to comment.