forked from enlightenment/efl
* ecore: fix mouse wheel for frame buffer.
Patch by Eduardo Felipe <eduardofelipe87@gmail.com>. SVN revision: 54471
This commit is contained in:
parent
fe92fc087a
commit
272a92e8f3
|
@ -177,11 +177,14 @@ _ecore_evas_event_mouse_wheel(void *data __UNUSED__, int type __UNUSED__, void *
|
|||
{
|
||||
Ecore_Evas *ee;
|
||||
Ecore_Fb_Event_Mouse_Wheel *e;
|
||||
unsigned long long event_time;
|
||||
|
||||
e = event;
|
||||
ee = _ecore_evas_fb_match();
|
||||
if (!ee) return EINA_TRUE; /* pass on event */
|
||||
_ecore_evas_mouse_move_process_fb(ee, e->x, e->y, (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff));
|
||||
event_time = (unsigned int)((unsigned long long)(ecore_time_get() * 1000.0) & 0xffffffff);
|
||||
_ecore_evas_mouse_move_process_fb(ee, e->x, e->y, event_time);
|
||||
evas_event_feed_mouse_wheel(ee->evas, e->direction, e->wheel, event_time, NULL);
|
||||
return EINA_FALSE; /* dont pass it on */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue