on xenial help sign in
fix visual glitch in right edge anim
7fc0f94Michael Zanetti
qml/Stage/Spread/StagedRightEdgeMaths.qml+1−1
@@ -34,7 +34,7 @@ QtObject {
34 // Output
34 // Output
35
35
36 readonly property real scaleToPreviewProgress: {
36 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)
38 }
38 }
39 readonly property int animatedWidth: {
39 readonly property int animatedWidth: {
40 return progress < breakPoint ? root.sceneHeight : MathUtils.linearAnimation(breakPoint, 1, root.sceneWidth, targetHeight, progress)
40 return progress < breakPoint ? root.sceneHeight : MathUtils.linearAnimation(breakPoint, 1, root.sceneWidth, targetHeight, progress)