Elm_glayer: Reset ZOOM, ROTATE to function as before continues.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 8 Sep 2011 10:10:41 +0000 (10:10 +0000)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Mon, 24 Oct 2011 09:23:32 +0000 (18:23 +0900)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@63289 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_gesture_layer.c

index 8ef568f..e68128a 100644 (file)
@@ -2663,25 +2663,6 @@ _zoom_test(Evas_Object *obj, Pointer_Event *pe, void *event_info,
                if (d < 0.0)
                  d = (-d);
 
-             if (wd->glayer_continues_enable)
-               {  /* START For contiunues gesture: compute momentum */
-                  _set_momentum(&st->momentum1, st->zoom_st.x, st->zoom_st.y,
-                        st->zoom_mv.x, st->zoom_mv.y,st->zoom_st.timestamp, st->zoom_st.timestamp,
-                        st->zoom_mv.timestamp);
-
-                  _set_momentum(&st->momentum2, st->zoom_st1.x, st->zoom_st1.y,
-                        st->zoom_mv1.x, st->zoom_mv1.y,st->zoom_st1.timestamp, st->zoom_st1.timestamp,
-                        st->zoom_mv1.timestamp);
-
-                  if (!(st->momentum1.mx + st->momentum1.my + st->momentum2.mx + st->momentum2.my))
-                    {
-                       ev_flag = _set_state(gesture_zoom, ELM_GESTURE_STATE_END,
-                             &st->info, EINA_FALSE);
-                       return;
-                    }
-               }  /* END For contiunues gesture: compute momentum */
-
-
                if (d >= wd->zoom_step)
                  {  /* Report move in steps */
                     st->next_step = st->info.zoom;
@@ -2910,24 +2891,6 @@ _rotate_test(Evas_Object *obj, Pointer_Event *pe, void *event_info,
              if (d < 0.0)
                d = (-d);
 
-             if (wd->glayer_continues_enable)
-               {  /* START For contiunues gesture: compute momentum */
-                  _set_momentum(&st->momentum1, st->rotate_st.x, st->rotate_st.y,
-                        st->rotate_mv.x, st->rotate_mv.y,st->rotate_st.timestamp, st->rotate_st.timestamp,
-                        st->rotate_mv.timestamp);
-
-                  _set_momentum(&st->momentum2, st->rotate_st1.x, st->rotate_st1.y,
-                        st->rotate_mv1.x, st->rotate_mv1.y,st->rotate_st1.timestamp, st->rotate_st1.timestamp,
-                        st->rotate_mv1.timestamp);
-
-                  if (!(st->momentum1.mx + st->momentum1.my + st->momentum2.mx + st->momentum2.my))
-                    {
-                       ev_flag = _set_state(gesture, ELM_GESTURE_STATE_END,
-                             &st->info, EINA_FALSE);
-                       return;
-                    }
-               }  /* END For contiunues gesture: compute momentum */
-
              if (d >= wd->rotate_step)
                {  /* Report move in steps */
                   st->next_step = st->info.angle;