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>
Tue, 3 Dec 2013 12:40:09 +0000 (21:40 +0900)
legacy/elementary/src/lib/elm_interface_scrollable.c

index 98a4979..2d249a5 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;