mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05: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:
parent
a421f0ae42
commit
a74d585fc5
@ -609,6 +609,7 @@ _scroll_event_cb (ClutterActor *viewport,
|
|||||||
viewport_height - scrollable_height,
|
viewport_height - scrollable_height,
|
||||||
0.0);
|
0.0);
|
||||||
|
|
||||||
|
/* animate the change to the scrollable's y coordinate */
|
||||||
clutter_actor_animate (scrollable,
|
clutter_actor_animate (scrollable,
|
||||||
CLUTTER_EASE_OUT_CUBIC,
|
CLUTTER_EASE_OUT_CUBIC,
|
||||||
300,
|
300,
|
||||||
|
@ -50,6 +50,7 @@ _scroll_event_cb (ClutterActor *viewport,
|
|||||||
viewport_height - scrollable_height,
|
viewport_height - scrollable_height,
|
||||||
0.0);
|
0.0);
|
||||||
|
|
||||||
|
/* animate the change to the scrollable's y coordinate */
|
||||||
clutter_actor_animate (scrollable,
|
clutter_actor_animate (scrollable,
|
||||||
CLUTTER_EASE_OUT_CUBIC,
|
CLUTTER_EASE_OUT_CUBIC,
|
||||||
300,
|
300,
|
||||||
|
Loading…
Reference in New Issue
Block a user