elm_interface_scrollable.c: reset momentum_animator to null when return cancel from the animator.

This commit is contained in:
Daniel Juyung Seo 2013-12-03 21:40:09 +09:00
parent c5196bfcda
commit bc9d9ecd6b
1 changed files with 5 additions and 1 deletions

View 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;