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
This commit is contained in:
Mike Blumenkrantz 2019-05-29 09:31:23 -04:00
parent bde555d622
commit 835058e688
1 changed files with 2 additions and 0 deletions

View File

@ -879,6 +879,8 @@ _focused_element(void *data, const Efl_Event *event)
pd = efl_data_scope_get(obj, ELM_INTERFACE_SCROLLABLE_MIXIN);
if (!focus) return;
/* no scroller content set */
if (!pd->pan_obj) return;
geom = efl_ui_focus_object_focus_geometry_get(focus);
pos = efl_gfx_entity_position_get(obj);