forked from enlightenment/enlightenment
use correct coords for determining input region calcs on comp objects
This commit is contained in:
parent
3313f0f26d
commit
a3a239c1d0
|
@ -3162,7 +3162,7 @@ e_comp_object_coords_inside_input_area(Evas_Object *obj, int x, int y)
|
||||||
API_ENTRY EINA_FALSE;
|
API_ENTRY EINA_FALSE;
|
||||||
|
|
||||||
if (cw->input_obj)
|
if (cw->input_obj)
|
||||||
return E_INSIDE(x, y, cw->input_rect.x, cw->input_rect.y, cw->input_rect.w, cw->input_rect.h);
|
return E_INSIDE(x, y, cw->x + cw->input_rect.x, cw->y + cw->input_rect.y, cw->input_rect.w, cw->input_rect.h);
|
||||||
return E_INSIDE(x, y, cw->ec->x, cw->ec->y, cw->ec->w, cw->ec->h);
|
return E_INSIDE(x, y, cw->ec->x, cw->ec->y, cw->ec->w, cw->ec->h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue