forked from enlightenment/efl
Evas masking: Implement event masking support
In case the clipper is a mask object, we should use precise event masking. By default precise_is_inside is not enabled because it is expensive, but it should probably be set by the application when they use masks as clippers. Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
This commit is contained in:
parent
73919ea437
commit
6e8e5e89b5
|
@ -122,6 +122,10 @@ _evas_event_object_list_raw_in_get(Evas *eo_e, Eina_List *in,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Evas_Object_Protected_Data *clip = obj->cur->clipper;
|
||||||
|
if (clip && clip->mask->is_mask && clip->precise_is_inside)
|
||||||
|
inside = evas_object_is_inside(clip->object, clip, x, y);
|
||||||
|
else
|
||||||
inside = evas_object_is_in_output_rect(eo_obj, obj, x, y, 1, 1);
|
inside = evas_object_is_in_output_rect(eo_obj, obj, x, y, 1, 1);
|
||||||
|
|
||||||
if (inside)
|
if (inside)
|
||||||
|
|
Loading…
Reference in New Issue