From 573572749051cd2f9e377e3cf642f2d5998222f6 Mon Sep 17 00:00:00 2001 From: "r.kuznetsov" Date: Tue, 8 Sep 2015 13:02:27 +0300 Subject: [PATCH] Review fixes --- drape_frontend/animation/model_view_animation.hpp | 2 ++ drape_frontend/my_position_controller.cpp | 2 ++ drape_frontend/user_event_stream.hpp | 1 + 3 files changed, 5 insertions(+) diff --git a/drape_frontend/animation/model_view_animation.hpp b/drape_frontend/animation/model_view_animation.hpp index 63401ee933..fd382bb39a 100644 --- a/drape_frontend/animation/model_view_animation.hpp +++ b/drape_frontend/animation/model_view_animation.hpp @@ -49,6 +49,8 @@ private: class FixedPointAnimation : public ModelViewAnimation { public: + /// This animation extends ModelViewAnimation by adding point which must be in certain + /// pixel position on the screen. FixedPointAnimation(m2::AnyRectD const & startRect, m2::AnyRectD const & endRect, double aDuration, double mDuration, double sDuration, m2::PointD const & pixelPoint, m2::PointD const & globalPoint); diff --git a/drape_frontend/my_position_controller.cpp b/drape_frontend/my_position_controller.cpp index 6cea13d8d8..152467b71c 100644 --- a/drape_frontend/my_position_controller.cpp +++ b/drape_frontend/my_position_controller.cpp @@ -477,7 +477,9 @@ void MyPositionController::Follow() { location::EMyPositionMode currentMode = GetMode(); if (currentMode == location::MODE_FOLLOW) + { ChangeModelView(m_position); + } else if (currentMode == location::MODE_ROTATE_AND_FOLLOW) { bool animate = true; diff --git a/drape_frontend/user_event_stream.hpp b/drape_frontend/user_event_stream.hpp index 4195fa3683..8a3ea898ab 100644 --- a/drape_frontend/user_event_stream.hpp +++ b/drape_frontend/user_event_stream.hpp @@ -244,6 +244,7 @@ private: void BeginDrag(Touch const & t, double timestamp); void Drag(Touch const & t, double timestamp); + // EndDrag returns false in case of kinetic moving after dragging has begun. bool EndDrag(Touch const & t, double timestamp, bool cancelled); void BeginScale(Touch const & t1, Touch const & t2);