mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
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:
@ -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,
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user