on xenial help sign in
some more minor fixes
commita6eaa8c1369fc8c714f32e942e0c02138c52efc5 authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 19 Mar 2014, 20:10 (13 years ago) parenta0cdb35
1 file changed+4−3
qml/Stages/TransformedSpreadDelegate.qml+4−3
qml/Stages/TransformedSpreadDelegate.qml+4−3
@@ -26,7 +26,9 @@ SpreadDelegate {
2626 property bool selected: false
2727 property bool otherSelected: false
2828
29+ // The progress animates the tiles. A value > 0 makes it appear from the right edge. At 1 it reaches the end position.
2930 property real progress: 0
31+ // This is required to snap tile 1 during phase 1 and 2.
3032 property real animatedProgress: 0
3133
3234 property real startAngle: 0
@@ -89,7 +91,7 @@ SpreadDelegate {
8991 property real selectedTopMarginProgress
9092
9193 // Those values are needed as target values for the end of phase 1.
92− // As they are static values, lets caluclate them once when entering phase 1 instead of calculating them in each animation pass.
94+ // As they are static values, lets calculate them once when entering phase 1 instead of calculating them in each animation pass.
9395 property real phase2startTranslate
9496 property real phase2startAngle
9597 property real phase2startScale
@@ -102,7 +104,6 @@ SpreadDelegate {
102104 selectedScale = scale;
103105 selectedOpacity = opacity;
104106 selectedTopMarginProgress = topMarginProgress;
105− if (index == 1) print("snapshotting values:", selectedProgress, selectedXTranslate, selectedAngle, selectedScale, selectedOpacity, selectedTopMarginProgress)
106107 }
107108
108109 // This calculates how much negative progress there can be if unwinding the spread completely
@@ -228,7 +229,7 @@ SpreadDelegate {
228229 case 0:
229230 if (spreadView.phase == 0) {
230231 return 1;
231− } else if(spreadView.phase == 1) {
232+ } else if (spreadView.phase == 1) {
232233 return linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4,
233234 1, phase2startScale, root.progress);
234235 }