review fix

This commit is contained in:
ExMix 2015-05-26 13:37:08 +03:00 committed by r.kuznetsov
parent 46ef7942f6
commit 02e352917b
2 changed files with 3 additions and 1 deletions

View file

@ -8,7 +8,7 @@ namespace
double GetMoveDuration(m2::PointD const & startPx, m2::PointD const & endPt, int minDisplaySize)
{
return max(0.5, min(0.5, 0.5 * startPx.Length(endPt) / 50.0));
return min(0.5, 0.5 * startPx.Length(endPt) / 50.0);
}
double GetRotateDuration(double const & startAngle, double const & endAngle)

View file

@ -155,6 +155,8 @@ public:
class Listener
{
public:
virtual ~Listener() {}
virtual void OnTap(m2::PointD const & pt, bool isLong) = 0;
virtual bool OnSingleTouchFiltrate(m2::PointD const & pt, TouchEvent::ETouchType type) = 0;
virtual void OnDragStarted() = 0;