forked from enlightenment/efl
elm_interface_scrollable.c: reset momentum_animator to null when return cancel from the animator.
This commit is contained in:
parent
c5196bfcda
commit
bc9d9ecd6b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue