[Scroller] Quit the scroll animator if the scroller don't have a bounce and reach...
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Fri, 12 Apr 2013 10:44:36 +0000 (19:44 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Sun, 14 Apr 2013 09:40:45 +0000 (18:40 +0900)
Change-Id: I14aa195946093ebff07e398f41149d2e8874c7de

src/lib/elm_interface_scrollable.c

index 67b878f..6058f9a 100644 (file)
@@ -1835,12 +1835,12 @@ _elm_scroll_momentum_animator(void *data)
         _elm_scroll_wanted_coordinates_update(sid, x, y);
         psd->api->pos_max_get(sid->pan_obj, &maxx, &maxy);
         psd->api->pos_min_get(sid->pan_obj, &minx, &miny);
-        if (!sid->bounce_horiz)
+        if (!_elm_config->thumbscroll_bounce_enable || !sid->bounce_horiz)
           {
              if (x <= minx) no_bounce_x_end = EINA_TRUE;
              if ((x - minx) >= maxx) no_bounce_x_end = EINA_TRUE;
           }
-        if (!sid->bounce_vert)
+        if (!_elm_config->thumbscroll_bounce_enable || !sid->bounce_vert)
           {
              if (y <= miny) no_bounce_y_end = EINA_TRUE;
              if ((y - miny) >= maxy) no_bounce_y_end = EINA_TRUE;