jaehwan pushed a commit to branch master.
commit de86d498a42a990a151be1a102b09d45d82498c5
Author: Jaehwan Kim <[email protected]>
Date: Mon Apr 8 08:40:24 2013 +0900
Quit the scroll animator if the scroller don't have a bounce and reach a
edge.
---
ChangeLog | 4 ++++
NEWS | 1 +
src/lib/elm_interface_scrollable.c | 5 +++--
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0c4d50d..89177ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1208,3 +1208,7 @@
* 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.
diff --git a/NEWS b/NEWS
index d5e6632..92d25b4 100644
--- a/NEWS
+++ b/NEWS
@@ -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:
diff --git a/src/lib/elm_interface_scrollable.c
b/src/lib/elm_interface_scrollable.c
index 051ff1d..c1434e2 100644
--- a/src/lib/elm_interface_scrollable.c
+++ b/src/lib/elm_interface_scrollable.c
@@ -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;
--
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html