This commit is contained in:
Hannes Janetzek 2013-01-02 03:44:50 +01:00
parent cfa56c00f6
commit 49055f2cc2

View File

@ -1,6 +1,6 @@
/* /*
* Copyright 2010, 2011, 2012 mapsforge.org * Copyright 2010, 2011, 2012 mapsforge.org
* Copyright 2012 Hannes Janetzek * Copyright 2012, 2013 OpenScienceMap
* *
* This program is free software: you can redistribute it and/or modify it under the * This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software * terms of the GNU Lesser General Public License as published by the Free Software
@ -31,13 +31,16 @@ import android.view.ScaleGestureDetector.OnScaleGestureListener;
import android.view.animation.DecelerateInterpolator; import android.view.animation.DecelerateInterpolator;
import android.widget.Scroller; import android.widget.Scroller;
// TODO: /**
// - write a AnimationTimer instead of using CountDownTimers * @author Hannes Janetzek
// - fix recognition of tilt/rotate/scale state... * @TODO:
* - use one AnimationTimer instead of CountDownTimers
* - fix recognition of tilt/rotate/scale state...
*/
final class TouchHandler implements OnGestureListener, OnScaleGestureListener, OnDoubleTapListener { final class TouchHandler implements OnGestureListener, OnScaleGestureListener, OnDoubleTapListener {
private static final String TAG = TouchHandler.class.getSimpleName(); //private static final String TAG = TouchHandler.class.getSimpleName();
private static final float SCALE_DURATION = 500; private static final float SCALE_DURATION = 500;
private static final float ROTATION_DELAY = 200; // ms private static final float ROTATION_DELAY = 200; // ms