on xenial help sign in
increase the angle of the first tile when snapping to stage1
commit4f909e2ada825a9362085356cd89d8d5b78cf0f8 authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 3 Feb 2014, 12:48 (13 years ago) parent3e74427
1 file changed+5−2
qml/Stages/TransformedSpreadDelegate.qml+5−2
qml/Stages/TransformedSpreadDelegate.qml+5−2
@@ -16,7 +16,10 @@ SpreadDelegate {
1616
1717 property real startScale: 1
1818 property real endScale: 1
19+
20+ // Specific to just one tile
1921 property real tile1StartScale: startScale + .4
22+ property real tile0SnapAngle: 10
2023
2124 property real startDistance: units.gu(5)
2225 property real endDistance: units.gu(.5)
@@ -151,10 +154,10 @@ SpreadDelegate {
151154 switch (index) {
152155 case 0:
153156 if (spreadView.stage == 0) {
154− newAngle = linearAnimation(0, spreadView.positionMarker2, 0, root.endAngle * spreadView.snapPosition, root.animatedProgress)
157+ newAngle = linearAnimation(0, spreadView.positionMarker2, 0, root.tile0SnapAngle, root.animatedProgress)
155158 break;
156159 } else if (spreadView.stage == 1) {
157− newAngle = linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4, root.endAngle * spreadView.snapPosition, stage2startAngle, root.progress)
160+ newAngle = linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4, root.tile0SnapAngle, stage2startAngle, root.progress)
158161 break;
159162 }
160163 case 1: