on xenial help sign in
increase the angle of the first tile when snapping to stage1
4f909e2Michael Zanetti
qml/Stages/TransformedSpreadDelegate.qml+5−2
@@ -16,7 +16,10 @@ SpreadDelegate {
16
16
17 property real startScale: 1
17 property real startScale: 1
18 property real endScale: 1
18 property real endScale: 1
19+
20+ // Specific to just one tile
19 property real tile1StartScale: startScale + .4
21 property real tile1StartScale: startScale + .4
22+ property real tile0SnapAngle: 10
20
23
21 property real startDistance: units.gu(5)
24 property real startDistance: units.gu(5)
22 property real endDistance: units.gu(.5)
25 property real endDistance: units.gu(.5)
@@ -151,10 +154,10 @@ SpreadDelegate {
151 switch (index) {
154 switch (index) {
152 case 0:
155 case 0:
153 if (spreadView.stage == 0) {
156 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)
155 break;
158 break;
156 } else if (spreadView.stage == 1) {
159 } 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)
158 break;
161 break;
159 }
162 }
160 case 1:
163 case 1: