summaryrefslogtreecommitdiffstats
path: root/demos/declarative/snake/content/Link.qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/snake/content/Link.qml')
-rw-r--r--demos/declarative/snake/content/Link.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/demos/declarative/snake/content/Link.qml b/demos/declarative/snake/content/Link.qml
index edaeeed..ff67ad7 100644
--- a/demos/declarative/snake/content/Link.qml
+++ b/demos/declarative/snake/content/Link.qml
@@ -77,7 +77,12 @@ Item { id:link
id: actualImageRotation
origin.x: width/2; origin.y: height/2;
angle: rotation * 90
- Behavior on angle { NumberAnimation { duration: spawned ? 200 : 0} }
+ Behavior on angle {
+ RotationAnimation{
+ direction: RotationAnimation.Shortest
+ duration: spawned ? 200 : 0
+ }
+ }
}
}