From: Enlightenment S. <no-...@en...> - 2012-12-04 12:37:00
|
Log: Fix for long tap behavior: update coords before sending LONG_TAP_START to user Signed-off-by: Daniel Zaoui <dan...@sa...> Author: jackdanielz Date: 2012-12-04 04:36:47 -0800 (Tue, 04 Dec 2012) New Revision: 80147 Trac: http://trac.enlightenment.org/e/changeset/80147 Modified: trunk/elementary/src/lib/elm_gesture_layer.c Modified: trunk/elementary/src/lib/elm_gesture_layer.c =================================================================== --- trunk/elementary/src/lib/elm_gesture_layer.c 2012-12-04 12:10:03 UTC (rev 80146) +++ trunk/elementary/src/lib/elm_gesture_layer.c 2012-12-04 12:36:47 UTC (rev 80147) @@ -1947,6 +1947,11 @@ 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 @@ 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: |