forked from enlightenment/efl
evas/events: fix conditional for emitting source mouse move events
Summary: this should match all other similar cases when determining whether to emit the event by checking whether at least one coord has changed, not both Depends on D11791 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: raster, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11792
This commit is contained in:
parent
823b7b05cd
commit
27630114ef
|
@ -815,7 +815,7 @@ _evas_event_source_mouse_move_events(Evas_Object *eo_obj, Evas *eo_e,
|
||||||
ev->action = EFL_POINTER_ACTION_IN;
|
ev->action = EFL_POINTER_ACTION_IN;
|
||||||
evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_IN, evt,
|
evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_IN, evt,
|
||||||
event_id2, EFL_EVENT_POINTER_IN);
|
event_id2, EFL_EVENT_POINTER_IN);
|
||||||
if ((cur_pt.x != prev_pt.x) && (cur_pt.y != prev_pt.y))
|
if ((cur_pt.x != prev_pt.x) || (cur_pt.y != prev_pt.y))
|
||||||
{
|
{
|
||||||
ev->action = EFL_POINTER_ACTION_MOVE;
|
ev->action = EFL_POINTER_ACTION_MOVE;
|
||||||
evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_MOVE, evt,
|
evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_MOVE, evt,
|
||||||
|
|
Loading…
Reference in New Issue