test-scrolling: Use a better looking bounce easing

This commit is contained in:
Emmanuele Bassi 2010-05-27 16:32:32 +01:00
parent aa53dccfce
commit dfe6eb1e51

View File

@ -35,7 +35,7 @@ on_drag_end (ClutterDragAction *action,
/* check if we're at the viewport edges */ /* check if we're at the viewport edges */
if (viewport_x > 0) if (viewport_x > 0)
{ {
clutter_actor_animate (viewport, CLUTTER_EASE_OUT_QUAD, 250, clutter_actor_animate (viewport, CLUTTER_EASE_OUT_BOUNCE, 250,
"x", 0.0, "x", 0.0,
NULL); NULL);
return; return;
@ -43,7 +43,7 @@ on_drag_end (ClutterDragAction *action,
if (viewport_x < (-1.0f * (RECT_WIDTH * (N_RECTS - 1)))) if (viewport_x < (-1.0f * (RECT_WIDTH * (N_RECTS - 1))))
{ {
clutter_actor_animate (viewport, CLUTTER_EASE_OUT_QUAD, 250, clutter_actor_animate (viewport, CLUTTER_EASE_OUT_BOUNCE, 250,
"x", (-1.0f * (RECT_WIDTH * (N_RECTS - 1))), "x", (-1.0f * (RECT_WIDTH * (N_RECTS - 1))),
NULL); NULL);
return; return;