on xenial help sign in
fix visual glitch in right edge anim
commit7fc0f94f4dcab9ef6b1433074dcb0de8894628aa authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 7 Sep 2016, 14:22 (10 years ago) parent5e826ea
1 file changed+1−1
qml/Stage/Spread/StagedRightEdgeMaths.qml+1−1
qml/Stage/Spread/StagedRightEdgeMaths.qml+1−1
@@ -34,7 +34,7 @@ QtObject {
3434 // Output
3535
3636 readonly property real scaleToPreviewProgress: {
37− return progress < breakPoint ? 0 : MathUtils.clamp(MathUtils.linearAnimation(0.5, 1.0, 0.0, 1.0, progress), 0, 1)
37+ return progress < breakPoint ? 0 : MathUtils.clamp(MathUtils.linearAnimation(breakPoint, 1, 0, 1, progress), 0, 1)
3838 }
3939 readonly property int animatedWidth: {
4040 return progress < breakPoint ? root.sceneHeight : MathUtils.linearAnimation(breakPoint, 1, root.sceneWidth, targetHeight, progress)