MapEventLayer2: improve double tap (#493)

This commit is contained in:
Gustl22
2018-01-29 20:59:55 +01:00
committed by Emux
parent 57ce026efd
commit 3905ddb5e4
5 changed files with 42 additions and 7 deletions

View File

@@ -39,6 +39,7 @@ public class GestureHandlerImpl extends GestureDetector.GestureAdapter {
@Override
public boolean tap(float x, float y, int count, int button) {
// Handle double tap zoom
// Not needed on desktop with MapEventLayer2
if (button == Input.Buttons.LEFT) {
if (count == 2) {
float pivotX = x - map.getWidth() / 2;