Summary:
if bounding is enabled, those values can get smaller and bigger than the
max value.
ref T4918
Depends on D9906
Reviewers: zmike
Reviewed By: zmike
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T4918
Differential Revision: https://phab.enlightenment.org/D9907
elm_obj_pan_pos_min_get(sid->pan_obj, &minx, &miny);
elm_obj_pan_pos_get(sid->pan_obj, &x, &y);
- if (x == minx) go_left = EINA_FALSE;
- if (x == (mx + minx)) go_right = EINA_FALSE;
- if (y == miny) go_up = EINA_FALSE;
- if (y == (my + miny)) go_down = EINA_FALSE;
+ if (x <= minx) go_left = EINA_FALSE;
+ if (x >= (mx + minx)) go_right = EINA_FALSE;
+ if (y <= miny) go_up = EINA_FALSE;
+ if (y >= (my + miny)) go_down = EINA_FALSE;
if (go_left != sid->go_left)
{
if (go_left)