Revert "[Scroller] Fix the scroll can be clicked right, when it doesn't have a bounce."
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Fri, 12 Apr 2013 10:41:19 +0000 (19:41 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Sun, 14 Apr 2013 09:40:39 +0000 (18:40 +0900)
Resolve this problem by another way.

This reverts commit f67ad8d9a8efe327458627eebbafafc9b6689e06.

Change-Id: Ida8050a140985b34d9c7eae6a52794fae7d95577

src/lib/elm_interface_scrollable.c

index e644eaa..67b878f 100644 (file)
@@ -1359,40 +1359,6 @@ _elm_scroll_content_pos_set(Evas_Object *obj,
         if (y - miny > my) y = my + miny;
      }
 
-   if (((!_elm_config->thumbscroll_bounce_enable) ||
-        (!sid->bounce_horiz)) && (sid->scrollto.x.animator) &&
-       ((px != x) && ((x == minx) || (x == (mx + minx)))))
-     {
-        ecore_animator_del(sid->scrollto.x.animator);
-        sid->scrollto.x.animator = NULL;
-     }
-
-   if (((!_elm_config->thumbscroll_bounce_enable) ||
-        (!sid->bounce_vert)) && (sid->scrollto.y.animator) &&
-       ((py != y) && ((y == miny) || (y == (my + miny)))))
-     {
-        ecore_animator_del(sid->scrollto.y.animator);
-        sid->scrollto.y.animator = NULL;
-     }
-
-   if (((!_elm_config->thumbscroll_bounce_enable) ||
-        ((!sid->bounce_horiz) && (!sid->bounce_vert))) &&
-       (sid->down.momentum_animator) &&
-       ((((px != x) && ((x == minx) || (x == (mx + minx)))) && (py == y)) ||
-       (((py != y) && ((y == miny) || (y == (my + miny)))) && (px == x))))
-     {
-        ecore_animator_del(sid->down.momentum_animator);
-        sid->down.momentum_animator = NULL;
-        sid->down.bounce_x_hold = EINA_FALSE;
-        sid->down.bounce_y_hold = EINA_FALSE;
-        sid->down.ax = 0;
-        sid->down.ay = 0;
-        sid->down.pdx = 0;
-        sid->down.pdy = 0;
-        if (sid->content_info.resized)
-          _elm_scroll_wanted_region_set(sid->obj);
-     }
-
    psd->api->pos_set(sid->pan_obj, x, y);
    psd->api->pos_get(sid->pan_obj, &spx, &spy);