MapEventLayer: take over gesture detection after double tap

This commit is contained in:
Hannes Janetzek
2013-04-28 04:25:25 +02:00
parent 57ec6ea067
commit 4f3560d810
2 changed files with 30 additions and 19 deletions

View File

@@ -253,6 +253,9 @@ public class MapEventLayer extends Overlay {
if (debug)
printState("onDoubleTap");
// avoid onLongPress
mMapView.getOverlayManager().cancelGesture();
return true;
}
@@ -291,7 +294,7 @@ public class MapEventLayer extends Overlay {
// float move = Math.min(mMapView.getWidth(), mMapView.getHeight()) * 2 / 3;
// mMapPosition.animateTo(vx * move, vy * move, 250);
//} else {
float s = (200 / mMapView.dpi);
float s = (200 / MapView.dpi);
mMapPosition.animateFling(
Math.round(velocityX * s),