Inverts behavior of double touch drag gesture

Per Android guidelines, double touch drag up should decrease content scale and double touch drag down should increase content scale.

This is also the behavior in the official Google Maps Android application.

http://developer.android.com/design/patterns/gestures.html
This commit is contained in:
Chuck Greb
2014-05-02 14:18:47 -04:00
committed by Hannes Janetzek
parent 559a5d0508
commit 804c91c701
2 changed files with 107 additions and 1 deletions

View File

@@ -200,7 +200,7 @@ public class MapEventLayer extends Layer implements InputListener, GestureListen
return true;
}
// FIXME limit scale properly
mViewport.scaleMap(1 - my / (height / 6), 0, 0);
mViewport.scaleMap(1 + my / (height / 6), 0, 0);
mMap.updateMap(true);
mStartMove = -1;
return true;