aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/toys/dynamicscene/content/Sun.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/toys/dynamicscene/content/Sun.qml')
-rw-r--r--examples/declarative/toys/dynamicscene/content/Sun.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/toys/dynamicscene/content/Sun.qml b/examples/declarative/toys/dynamicscene/content/Sun.qml
index 7c41ba2a69..4652829936 100644
--- a/examples/declarative/toys/dynamicscene/content/Sun.qml
+++ b/examples/declarative/toys/dynamicscene/content/Sun.qml
@@ -50,11 +50,11 @@ Image {
// once item is created, start moving offscreen
NumberAnimation on y {
- to: window.height / 2
+ to: (window.height / 2) + window.centerOffset
running: created
onRunningChanged: {
if (running)
- duration = (window.height - sun.y) * 10;
+ duration = (window.height + window.centerOffset - sun.y) * 10;
else
state = "OffScreen"
}