reset pinch scale delta when going into scale mode

This commit is contained in:
Hannes Janetzek
2014-02-02 00:00:10 +01:00
parent a5c9b9edac
commit f48144791b
+6 -1
View File
@@ -301,7 +301,12 @@ public class MapEventLayer extends Layer implements Map.InputListener, GestureLi
// enter exclusice scale mode
if (Math.abs(deltaPinch) > (CanvasAdapter.dpi
/ MIN_SLOP * PINCH_ZOOM_THRESHOLD)) {
mCanRotate = mDoRotate || false;
if (!mDoRotate) {
mPrevPinchWidth = pinchWidth;
mCanRotate = false;
}
mCanTilt = false;
mDoScale = true;
}