on xenial help sign in
drop unneeded old code
b1adcdbMichael Zanetti
qml/Stages/SpreadMaths.qml+1−8
@@ -81,7 +81,7 @@ Item {
81 return linearAnimation(0, 1, rightFoldingAreaX, flickableWidth - margins - stackWidth, rightEasing.value);
81 return linearAnimation(0, 1, rightFoldingAreaX, flickableWidth - margins - stackWidth, rightEasing.value);
82 }
82 }
83
83
84− return linearX//margins + foldingAreaWidth + centerEasing.value * (linearX - margins - foldingAreaWidth);
84+ return linearX
85 }
85 }
86
86
87 readonly property int animatedY: sceneHeight - itemHeight - spreadBottomOffset
87 readonly property int animatedY: sceneHeight - itemHeight - spreadBottomOffset
@@ -138,13 +138,6 @@ Item {
138 return (progress - startProgress) * (endValue - startValue) / (endProgress - startProgress) + startValue;
138 return (progress - startProgress) * (endValue - startValue) / (endProgress - startProgress) + startValue;
139 }
139 }
140
140
141− EasingCurve {
142− id: centerEasing
143− type: EasingCurve.InOutSine
144− property int totalDistance: flickableWidth - foldingAreaWidth * 2 - margins * 2
145− progress: (linearX - margins - foldingAreaWidth) / totalDistance
146− }
147−
148 EasingCurve {
141 EasingCurve {
149 id: leftEasing
142 id: leftEasing
150 type: EasingCurve.OutSine
143 type: EasingCurve.OutSine