From e9bafd12ab65b84573a3031f236a18c021d7f8d9 Mon Sep 17 00:00:00 2001 From: Hosang Kim Date: Fri, 14 Oct 2016 14:55:24 +0900 Subject: [PATCH] ecore_wl_input: fix rotary event timestamp. ecore_time_get()'s return value is second unit. But we need millisecond uniti of value. Signed-off-by: Hosang Kim Change-Id: Id14c430c720cea88aa837a2c98b99df32b0f2e1e --- src/lib/ecore_wayland/ecore_wl_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c index 9f4a63c..e999feb 100644 --- a/src/lib/ecore_wayland/ecore_wl_input.c +++ b/src/lib/ecore_wayland/ecore_wl_input.c @@ -2392,7 +2392,7 @@ _ecore_wl_input_device_cb_axis(void *data EINA_UNUSED, struct tizen_input_device e->direction = ECORE_DETENT_DIRECTION_CLOCKWISE; else e->direction = ECORE_DETENT_DIRECTION_COUNTER_CLOCKWISE; - e->timestamp = (unsigned int)ecore_time_get(); + e->timestamp = (int)(ecore_time_get() * 1000.0); DBG("detent: dir: %d, time: %d", e->direction, e->timestamp); ecore_event_add(ECORE_EVENT_DETENT_ROTATE, e, _ecore_wl_input_detent_rotate_free, NULL); break; -- 2.7.4