Quit the scroll animator if the scroller don't have a bounce and reach a edge.
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Sun, 7 Apr 2013 23:40:24 +0000 (08:40 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Sun, 7 Apr 2013 23:40:24 +0000 (08:40 +0900)
legacy/elementary/ChangeLog
legacy/elementary/NEWS
legacy/elementary/src/lib/elm_interface_scrollable.c

index 0c4d50d..89177ed 100644 (file)
 
         * Add the API elm_scroller_page_scroll_limit_set/get.
         It sets the maxium of the movable page at flicking.
+
+2013-04-08  Jaehwan Kim
+
+        * Quit the scroll animator if the scroller don't have a bounce and reach a edge.
index d5e6632..92d25b4 100644 (file)
@@ -198,6 +198,7 @@ Fixes:
    * Fix the elm_shutdown bug in _elm_shutdown_config.
    * Fix box layout bug when items with max size force sizes below minimum.
    * Fix ctxpopup geometry when parent is an elm_win.
+   * Quit the scroll animator if the scroller don't have a bounce and reach a edge.
 
 Removals:
 
index 051ff1d..c1434e2 100644 (file)
@@ -1945,12 +1945,13 @@ _elm_scroll_momentum_animator(void *data)
         _elm_scroll_wanted_coordinates_update(sid, x, y);
         eo_do(sid->pan_obj, elm_obj_pan_pos_max_get(&maxx, &maxy));
         eo_do(sid->pan_obj, elm_obj_pan_pos_min_get(&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;