summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Juyung Seo <juyung.seo@samsung.com>2013-12-03 21:40:09 +0900
committerDaniel Juyung Seo <juyung.seo@samsung.com>2013-12-05 16:37:38 +0900
commitba1381c427275cb6cee97ec9d2e7e5a829f4ffa9 (patch)
treecfd1510c4df9acf5ee556bbec3a9ec78f3b17f85 /src
parentd67f5ee94175fa1c12beecb3555bc03d0afb05fd (diff)
elm_interface_scrollable.c: reset momentum_animator to null when return cancel from the animator.
Diffstat (limited to 'src')
-rw-r--r--src/lib/elm_interface_scrollable.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elm_interface_scrollable.c b/src/lib/elm_interface_scrollable.c
index 625255643..866734772 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)
2023 Evas_Coord x, y, dx, dy, px, py, maxx, maxy, minx, miny; 2023 Evas_Coord x, y, dx, dy, px, py, maxx, maxy, minx, miny;
2024 Eina_Bool no_bounce_x_end = EINA_FALSE, no_bounce_y_end = EINA_FALSE; 2024 Eina_Bool no_bounce_x_end = EINA_FALSE, no_bounce_y_end = EINA_FALSE;
2025 2025
2026 if (!sid->pan_obj) return ECORE_CALLBACK_CANCEL; 2026 if (!sid->pan_obj)
2027 {
2028 sid->down.momentum_animator = NULL;
2029 return ECORE_CALLBACK_CANCEL;
2030 }
2027 2031
2028 t = ecore_loop_time_get(); 2032 t = ecore_loop_time_get();
2029 dt = t - sid->down.anim_start; 2033 dt = t - sid->down.anim_start;