cookbook: Mentioned the animation in the sample code

Put in comments to make it clear where the animation
for the mouse scroll is coming from in the sample code.
This commit is contained in:
Elliot Smith 2010-08-11 17:14:09 +01:00
parent a421f0ae42
commit a74d585fc5
2 changed files with 2 additions and 0 deletions

View File

@ -609,6 +609,7 @@ _scroll_event_cb (ClutterActor *viewport,
viewport_height - scrollable_height,
0.0);
/* animate the change to the scrollable's y coordinate */
clutter_actor_animate (scrollable,
CLUTTER_EASE_OUT_CUBIC,
300,

View File

@ -50,6 +50,7 @@ _scroll_event_cb (ClutterActor *viewport,
viewport_height - scrollable_height,
0.0);
/* animate the change to the scrollable's y coordinate */
clutter_actor_animate (scrollable,
CLUTTER_EASE_OUT_CUBIC,
300,