summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-29 09:31:23 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 12:29:04 -0400
commitb0ab9feadf3957237229305074bce3eff8be2e98 (patch)
tree27ce163869cc605dab1b8da96ac7b8fef7f32863
parentf65ffd257b60045fc9adf61498457209847f019b (diff)
elm/scroller: return immediately from updating focused scroll region without content
Summary: there is nothing to update here if the scroller has no content to update @fix Depends on D9000 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9001
-rw-r--r--src/lib/elementary/elm_scroller.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_scroller.c b/src/lib/elementary/elm_scroller.c
index c37fc07543..c7a7054bd7 100644
--- a/src/lib/elementary/elm_scroller.c
+++ b/src/lib/elementary/elm_scroller.c
@@ -879,6 +879,8 @@ _focused_element(void *data, const Efl_Event *event)
879 pd = efl_data_scope_get(obj, ELM_INTERFACE_SCROLLABLE_MIXIN); 879 pd = efl_data_scope_get(obj, ELM_INTERFACE_SCROLLABLE_MIXIN);
880 880
881 if (!focus) return; 881 if (!focus) return;
882 /* no scroller content set */
883 if (!pd->pan_obj) return;
882 884
883 geom = efl_ui_focus_object_focus_geometry_get(focus); 885 geom = efl_ui_focus_object_focus_geometry_get(focus);
884 pos = efl_gfx_entity_position_get(obj); 886 pos = efl_gfx_entity_position_get(obj);