on xenial help sign in
fix some transitions again
660cc95Michael Zanetti
qml/Stages/DesktopStage.qml+10−4
@@ -731,9 +731,15 @@ AbstractStage {
731 }
731 }
732
732
733 function playFocusAnimation() {
733 function playFocusAnimation() {
734− if (state == "stagedrightedge" || state == "sidestagedrightedge") {
734+ if (state == "sidestagedrightedge") {
735+ // TODO: Can we drop this if and find something that always works?
736+ if (root.mode == "staged") {
737+ rightEdgeFocusAnimation.targetX = 0
738+ rightEdgeFocusAnimation.start()
739+ } else if (root.mode == "stagedWithSideStage") {
735− rightEdgeFocusAnimation.targetX = appDelegate.stage == ApplicationInfoInterface.SideStage ? sideStage.x : 0
740+ rightEdgeFocusAnimation.targetX = appDelegate.stage == ApplicationInfoInterface.SideStage ? sideStage.x : 0
736− rightEdgeFocusAnimation.start()
741+ rightEdgeFocusAnimation.start()
742+ }
737 } else {
743 } else {
738 focusAnimation.start()
744 focusAnimation.start()
739 }
745 }
@@ -753,7 +759,7 @@ AbstractStage {
753 ParallelAnimation {
759 ParallelAnimation {
754 id: rightEdgeFocusAnimation
760 id: rightEdgeFocusAnimation
755 property int targetX: 0
761 property int targetX: 0
756− UbuntuNumberAnimation { target: appDelegate; properties: "x"; to: targetX; duration: priv.animationDuration }
762+ UbuntuNumberAnimation { target: appDelegate; properties: "x"; to: rightEdgeFocusAnimation.targetX; duration: priv.animationDuration }
757 UbuntuNumberAnimation { target: decoratedWindow; properties: "angle"; to: 0; duration: priv.animationDuration }
763 UbuntuNumberAnimation { target: decoratedWindow; properties: "angle"; to: 0; duration: priv.animationDuration }
758 UbuntuNumberAnimation { target: decoratedWindow; properties: "itemScale"; to: 1; duration: priv.animationDuration }
764 UbuntuNumberAnimation { target: decoratedWindow; properties: "itemScale"; to: 1; duration: priv.animationDuration }
759 onStopped: appDelegate.focus = true
765 onStopped: appDelegate.focus = true
qml/Stages/Spread/StagedRightEdgeMaths.qml+1−1
@@ -30,7 +30,7 @@ QtObject {
30 // Output
30 // Output
31
31
32 readonly property real scaleToPreviewProgress: {
32 readonly property real scaleToPreviewProgress: {
33− print("scaleProg:", progress < breakPoint ? 0 : MathUtils.linearAnimation(breakPoint, 1.0, 0.0, 1.0, progress))
33+// print("scaleProg:", progress < breakPoint ? 0 : MathUtils.linearAnimation(breakPoint, 1.0, 0.0, 1.0, progress))
34 return progress < breakPoint ? 0 : MathUtils.linearAnimation(0.5, 1.0, 0.0, 1.0, progress)
34 return progress < breakPoint ? 0 : MathUtils.linearAnimation(0.5, 1.0, 0.0, 1.0, progress)
35 }
35 }
36 readonly property int animatedWidth: {
36 readonly property int animatedWidth: {