diff --git a/doc/cookbook/events.xml b/doc/cookbook/events.xml index 802885fab..77784e0dc 100644 --- a/doc/cookbook/events.xml +++ b/doc/cookbook/events.xml @@ -635,6 +635,17 @@ _scroll_event_cb (ClutterActor *viewport, Scrolling down adds to the y coordinate (but only up to a maximum value of 0.0). + + To see how this works in practice, look at + the code + sample. There, the height of the scrollable actor is + set to 300 and the height of the viewport to + 150. This means that the y + coordinate value for the scrollable actor will vary between + -150.0 (150 - 300), making + its base visible and clipping the top; and + 0.0, where its top is visible and its base + clipped.