elm_interface_scrollable.c: reset momentum_animator to null when return cancel from...
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Tue, 3 Dec 2013 12:40:09 +0000 (21:40 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Thu, 5 Dec 2013 07:37:38 +0000 (16:37 +0900)
src/lib/elm_interface_scrollable.c

index 6252556431338722f59bb69b1fbcb9b01acb9d6b..8667347723faeedf509b8e415211d424b5b6684d 100644 (file)
@@ -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;