on xenial help sign in
fix angle in right edge drag
5e20875Michael Zanetti
qml/Stage/Spread/StagedRightEdgeMaths.qml+6−8
@@ -129,16 +129,14 @@ QtObject {
129 }
129 }
130 }
130 }
131
131
132+ if ((itemIndex == nextInStack)
133+ || (isMainStageApp && nextStage === ApplicationInfoInterface.MainStage)
134+ || (isSideStageApp && nextStage === ApplicationInfoInterface.SideStage)) {
135+ return MathUtils.linearAnimation(0, 1, startAngle, targetAngle, progress);
136+ }
132
137
133 if (progress < breakPoint) {
138 if (progress < breakPoint) {
134− if (itemIndex == nextInStack && (sideStageOpen || stage == ApplicationInfoInterface.MainStage)) {
139+ return 0;
135− return MathUtils.linearAnimation(0, 1, startAngle, targetAngle, progress);
136− } else {
137− return 0;
138− }
139− }
140− if (itemIndex == nextInStack) {
141− return MathUtils.linearAnimation(0, 1, startAngle, targetAngle, progress);
142 }
140 }
143 return MathUtils.linearAnimation(breakPoint, 1, startAngle, targetAngle, progress);
141 return MathUtils.linearAnimation(breakPoint, 1, startAngle, targetAngle, progress);
144 }
142 }