git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@58137
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
trans = elm_transit_add();
elm_transit_auto_reverse_set(trans, EINA_TRUE);
elm_transit_tween_mode_set(trans, ELM_TRANSIT_TWEEN_MODE_DECELERATE);
+ //Negative value makes transition repeate for infinite times.
elm_transit_repeat_times_set(trans, -1);
effect_context = _custom_context_new(100, 100, 250, 250);
elm_transit_object_add(trans, bt);
if (elapsed_time < duration) return ECORE_CALLBACK_RENEW;
/* Repeat and reverse and time done! */
- if ((transit->repeat.current == transit->repeat.count)
- && (!transit->auto_reverse || transit->repeat.reverse))
+ if ((transit->repeat.count >= 0) &&
+ (transit->repeat.current == transit->repeat.count) &&
+ ((!transit->auto_reverse) || transit->repeat.reverse))
{
elm_transit_del(transit);
return ECORE_CALLBACK_CANCEL;