block 'tilt' gesture only when 'rotation' is active

This commit is contained in:
Hannes Janetzek 2013-02-14 01:59:04 +01:00
parent e69bebb2c5
commit 7b87e8fdc1

View File

@ -238,7 +238,7 @@ final class TouchHandler implements OnGestureListener, OnDoubleTapListener {
changed = mMapPosition.scaleMap(scale, fx, fy);
}
if (!mBeginScale && !mBeginRotate && Math.abs(slope) < 1) {
if (!mBeginRotate && Math.abs(slope) < 1) {
float my2 = y2 - mPrevY2;
float threshold = PINCH_TILT_THRESHOLD;