cookbook: Mentioned the animation in the sample code
authorElliot Smith <elliot.smith@intel.com>
Wed, 11 Aug 2010 16:14:09 +0000 (17:14 +0100)
committerElliot Smith <elliot.smith@intel.com>
Wed, 11 Aug 2010 17:16:07 +0000 (18:16 +0100)
Put in comments to make it clear where the animation
for the mouse scroll is coming from in the sample code.

doc/cookbook/events.xml
doc/cookbook/examples/events-mouse-scroll.c

index 5b6683b..802885f 100644 (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,
index d8d6163..bce9c40 100644 (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,