summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/follow/pong.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/follow/pong.qml b/examples/declarative/follow/pong.qml
index 93ee6a7..c101d8d 100644
--- a/examples/declarative/follow/pong.qml
+++ b/examples/declarative/follow/pong.qml
@@ -26,7 +26,7 @@ Rect {
y: Follow { source: Ball.targetY; velocity: 200 }
// Detect the ball hitting the top or bottom of the view and bounce it
- onTopChanged: {
+ onYChanged: {
if (y <= 0)
targetY = Page.height-20;
else if (y >= Page.height-20)