zmike pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=72525c77da8aab2a426628545a76eb344964d42a

commit 72525c77da8aab2a426628545a76eb344964d42a
Author: Marcel Hollerbach <[email protected]>
Date:   Fri Oct 25 14:04:46 2019 -0400

    elm_interface_scrollable: correctly handle bouncing
    
    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
---
 src/lib/elementary/elm_interface_scrollable.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lib/elementary/elm_interface_scrollable.c 
b/src/lib/elementary/elm_interface_scrollable.c
index 4defc707b4..05616e4cb6 100644
--- a/src/lib/elementary/elm_interface_scrollable.c
+++ b/src/lib/elementary/elm_interface_scrollable.c
@@ -479,10 +479,10 @@ 
_elm_direction_arrows_eval(Elm_Scrollable_Smart_Interface_Data *sid)
    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)

-- 


Reply via email to