seoz pushed a commit to branch elementary-1.8.

http://git.enlightenment.org/core/elementary.git/commit/?id=ba1381c427275cb6cee97ec9d2e7e5a829f4ffa9

commit ba1381c427275cb6cee97ec9d2e7e5a829f4ffa9
Author: Daniel Juyung Seo <juyung....@samsung.com>
Date:   Tue Dec 3 21:40:09 2013 +0900

    elm_interface_scrollable.c: reset momentum_animator to null when return 
cancel from the animator.
---
 src/lib/elm_interface_scrollable.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/elm_interface_scrollable.c 
b/src/lib/elm_interface_scrollable.c
index 6252556..8667347 100644
--- a/src/lib/elm_interface_scrollable.c
+++ b/src/lib/elm_interface_scrollable.c
@@ -2023,7 +2023,11 @@ _elm_scroll_momentum_animator(void *data)
    Evas_Coord x, y, dx, dy, px, py, maxx, maxy, minx, miny;
    Eina_Bool no_bounce_x_end = EINA_FALSE, no_bounce_y_end = EINA_FALSE;
 
-   if (!sid->pan_obj) return ECORE_CALLBACK_CANCEL;
+   if (!sid->pan_obj)
+     {
+        sid->down.momentum_animator = NULL;
+        return ECORE_CALLBACK_CANCEL;
+     }
 
    t = ecore_loop_time_get();
    dt = t - sid->down.anim_start;

-- 


Reply via email to