Fix for long tap behavior: update coords before sending LONG_TAP_START to user
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Tue, 4 Dec 2012 12:36:47 +0000 (12:36 +0000)
committerDaniel Zaoui <daniel.zaoui@yahoo.com>
Tue, 4 Dec 2012 12:36:47 +0000 (12:36 +0000)
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>
SVN revision: 80147

src/lib/elm_gesture_layer.c

index fc57711..0344650 100644 (file)
@@ -1947,6 +1947,11 @@ _n_long_tap_test(Evas_Object *obj,
         st->touched = _touched_device_add(st->touched, pe);
         st->info.n = eina_list_count(st->touched);
 
+        _event_consume(sd, event_info, event_type, ev_flag);
+        _compute_taps_center(st, &st->info.x, &st->info.y, pe);
+        st->center_x = st->info.x;  /* Update coords for */
+        st->center_y = st->info.y;  /* reporting START  */
+
         /* This is the first mouse down we got */
         if (eina_list_count(st->touched) == 1)
           {
@@ -1966,11 +1971,6 @@ _n_long_tap_test(Evas_Object *obj,
                 ecore_timer_reset(st->timeout);
           }
 
-
-        _event_consume(sd, event_info, event_type, ev_flag);
-        _compute_taps_center(st, &st->info.x, &st->info.y, pe);
-        st->center_x = st->info.x;
-        st->center_y = st->info.y;
         break;
 
       case EVAS_CALLBACK_MULTI_UP: