fixed panning bug after zoomming and detaching just one-finger 32/73332/1
authorchanywa <cbible.kim@samsung.com>
Tue, 7 Jun 2016 13:44:02 +0000 (22:44 +0900)
committerchanywa <cbible.kim@samsung.com>
Tue, 7 Jun 2016 13:44:02 +0000 (22:44 +0900)
Change-Id: I1a4276b9d8aa6374c7de1cf586d22219a2f28910

src/view/inertial_gesture.cpp

index 09e5092..e7e24db 100644 (file)
@@ -67,6 +67,8 @@ void view::inertial_gesture::tap(int finger_no, const touch_point &tp)
        MAPS_LOGI("TRANSITION finger %d tap time: %d",
                  finger_no, tp._timestamp);
 
+       _maps_view_halt_inertial_camera(_view);
+
        if(transiting) { /* Halt the transition */
                for(int i = 0; i < MAX_FINGERS; i ++) {
                        if(!transiting_part[i])
@@ -79,7 +81,6 @@ void view::inertial_gesture::tap(int finger_no, const touch_point &tp)
                        _d->up(i, tp);
                }
 
-               _maps_view_halt_inertial_camera(_view);
                _d->halt_gesture();
                reset();
        }
@@ -98,6 +99,8 @@ void view::inertial_gesture::move(int finger_no, const touch_point &tp)
 {
        MAPS_LOGI("TRANSITION finger %d move", finger_no);
 
+       _maps_view_halt_inertial_camera(_view);
+
        _prev[finger_no] = _last[finger_no];
        _last[finger_no] = tp;
        _cur_x[finger_no] = tp._x;