elm_interface_scrollable: correctly honor looping over

Summary:
when looping is enabled, we need to ensure that the correct arrows are
enabled.

ref D9906

Depends on D9908

Reviewers: zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9917
This commit is contained in:
Marcel Hollerbach 2019-10-25 14:05:00 -04:00 committed by Mike Blumenkrantz
parent ace64dafea
commit a380a4275a
1 changed files with 12 additions and 0 deletions

View File

@ -484,6 +484,18 @@ _elm_direction_arrows_eval(Elm_Scrollable_Smart_Interface_Data *sid, Eina_Bool r
if (y <= miny) go_up = EINA_FALSE;
if (y >= (my + miny)) go_down = EINA_FALSE;
if (sid->loop_v)
{
go_up = EINA_TRUE;
go_down = EINA_TRUE;
}
if (sid->loop_h)
{
go_right = EINA_TRUE;
go_left = EINA_TRUE;
}
if (!rely_on_cache || go_left != sid->go_left)
{
if (go_left)