on xenial help sign in
drop unneeded old code
commitb1adcdbe3f8e62a0f6515e060879159a499491c9 authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 11 Jun 2015, 13:26 (11 years ago) parente13e787
1 file changed+1−8
qml/Stages/SpreadMaths.qml+1−8
qml/Stages/SpreadMaths.qml+1−8
@@ -81,7 +81,7 @@ Item {
8181 return linearAnimation(0, 1, rightFoldingAreaX, flickableWidth - margins - stackWidth, rightEasing.value);
8282 }
8383
84− return linearX//margins + foldingAreaWidth + centerEasing.value * (linearX - margins - foldingAreaWidth);
84+ return linearX
8585 }
8686
8787 readonly property int animatedY: sceneHeight - itemHeight - spreadBottomOffset
@@ -138,13 +138,6 @@ Item {
138138 return (progress - startProgress) * (endValue - startValue) / (endProgress - startProgress) + startValue;
139139 }
140140
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−
148141 EasingCurve {
149142 id: leftEasing
150143 type: EasingCurve.OutSine