From 6d95788edc13a4b19cbad6091f9d875f6d009315 Mon Sep 17 00:00:00 2001 From: Yeongjong Lee Date: Wed, 17 Apr 2019 08:15:15 +0000 Subject: [PATCH] efl/elm_scroller: apply color_set correctly hit_rect/event_rect should ignore color_set. Reviewed-by: Marcel Hollerbach Differential Revision: https://phab.enlightenment.org/D8629 --- src/lib/elementary/efl_ui_scroll_manager.c | 1 + src/lib/elementary/elm_scroller.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib/elementary/efl_ui_scroll_manager.c b/src/lib/elementary/efl_ui_scroll_manager.c index e58aa87..a6bf0cd 100644 --- a/src/lib/elementary/efl_ui_scroll_manager.c +++ b/src/lib/elementary/efl_ui_scroll_manager.c @@ -2418,6 +2418,7 @@ _efl_ui_scroll_manager_efl_object_constructor(Eo *obj, Efl_Ui_Scroll_Manager_Dat sd->scrolling = EINA_FALSE; sd->event_rect = evas_object_rectangle_add(evas_object_evas_get(sd->parent)); + efl_key_data_set(sd->event_rect, "_elm_leaveme", obj); efl_canvas_group_member_add(sd->parent, sd->event_rect); efl_ui_widget_sub_object_add(sd->parent, sd->event_rect); diff --git a/src/lib/elementary/elm_scroller.c b/src/lib/elementary/elm_scroller.c index 2761bdf..9208411 100644 --- a/src/lib/elementary/elm_scroller.c +++ b/src/lib/elementary/elm_scroller.c @@ -1051,6 +1051,7 @@ _elm_scroller_efl_canvas_group_group_add(Eo *obj, Elm_Scroller_Data *priv) CRI("Failed to set layout!"); priv->hit_rect = evas_object_rectangle_add(evas_object_evas_get(obj)); + evas_object_data_set(priv->hit_rect, "_elm_leaveme", obj); evas_object_smart_member_add(priv->hit_rect, obj); elm_widget_sub_object_add(obj, priv->hit_rect); -- 2.7.4