@@ -64,9 +64,9 @@ SpreadDelegate {
64 if (spreadView.phase == 1) {
64 if (spreadView.phase == 1) {
65 var phase2Progress = spreadView.positionMarker4 - (root.zIndex * spreadView.tileDistance / spreadView.width);
65 var phase2Progress = spreadView.positionMarker4 - (root.zIndex * spreadView.tileDistance / spreadView.width);
66 priv.phase2StartTranslate = priv.easingAnimation(0, 1, 0, -spreadView.width + (root.zIndex * root.endDistance), phase2Progress);
66 priv.phase2StartTranslate = priv.easingAnimation(0, 1, 0, -spreadView.width + (root.zIndex * root.endDistance), phase2Progress);
67− priv.phase2StartScale = priv.easingAnimation(0, 1, root.startScale, root.endScale, phase2Progress)
67+ priv.phase2StartScale = priv.easingAnimation(0, 1, root.startScale, root.endScale, phase2Progress);
68− priv.phase2StartAngle = priv.easingAnimation(0, 1, root.startAngle, root.endAngle, phase2Progress)
68+ priv.phase2StartAngle = priv.easingAnimation(0, 1, root.startAngle, root.endAngle, phase2Progress);
69− priv.phase2StartTopMarginProgress = priv.easingAnimation(0, 1, 0, 1, phase2Progress)
69+ priv.phase2StartTopMarginProgress = priv.easingAnimation(0, 1, 0, 1, phase2Progress);
@@ -129,27 +129,27 @@ SpreadDelegate {
129 var newTranslate = 0;
129 var newTranslate = 0;
131 if (otherSelected) {
131 if (otherSelected) {
132− return priv.selectedXTranslate
132+ return priv.selectedXTranslate;
135 if (isSelected) {
135 if (isSelected) {
136 if (model.stage == ApplicationInfoInterface.MainStage) {
136 if (model.stage == ApplicationInfoInterface.MainStage) {
137− return linearAnimation(selectedProgress, negativeProgress, selectedXTranslate, -spreadView.width, root.progress)
137+ return linearAnimation(selectedProgress, negativeProgress, selectedXTranslate, -spreadView.width, root.progress);
139− return linearAnimation(selectedProgress, negativeProgress, selectedXTranslate, -spreadView.sideStageWidth, root.progress)
139+ return linearAnimation(selectedProgress, negativeProgress, selectedXTranslate, -spreadView.sideStageWidth, root.progress);
143 // The tile should move a bit to the left if a new one comes on top of it, but not for the Side Stage and not
143 // The tile should move a bit to the left if a new one comes on top of it, but not for the Side Stage and not
144 // when we're only dragging the side stage in on top of a main stage app
144 // when we're only dragging the side stage in on top of a main stage app
145 var shouldMoveAway = spreadView.nextInStack >= 0 && priv.movedActive && model.stage === ApplicationInfoInterface.MainStage &&
145 var shouldMoveAway = spreadView.nextInStack >= 0 && priv.movedActive && model.stage === ApplicationInfoInterface.MainStage &&
146− ApplicationManager.get(spreadView.nextInStack).stage === ApplicationInfoInterface.MainStage
146+ ApplicationManager.get(spreadView.nextInStack).stage === ApplicationInfoInterface.MainStage;
148 if (active) {
148 if (active) {
149 newTranslate -= root.width
149 newTranslate -= root.width
150 // Only do the hide animation for active apps in the mainstage, and not if we only drag the ss in
150 // Only do the hide animation for active apps in the mainstage, and not if we only drag the ss in
151 if (spreadView.phase == 0 && shouldMoveAway) {
151 if (spreadView.phase == 0 && shouldMoveAway) {
152− newTranslate += linearAnimation(0, spreadView.positionMarker2, 0, -units.gu(4), root.animatedProgress)
152+ newTranslate += linearAnimation(0, spreadView.positionMarker2, 0, -units.gu(4), root.animatedProgress);
155 if (nextInStack && spreadView.phase == 0) {
155 if (nextInStack && spreadView.phase == 0) {
@@ -162,16 +162,16 @@ SpreadDelegate {
163 if (model.stage == ApplicationInfoInterface.SideStage && !spreadView.sideStageVisible) {
163 if (model.stage == ApplicationInfoInterface.SideStage && !spreadView.sideStageVisible) {
164 // This is when we only drag the side stage in, without rotation or snapping
164 // This is when we only drag the side stage in, without rotation or snapping
165− newTranslate = linearAnimation(0, spreadView.positionMarker2, 0, -spreadView.sideStageWidth, root.progress)
165+ newTranslate = linearAnimation(0, spreadView.positionMarker2, 0, -spreadView.sideStageWidth, root.progress);
167− newTranslate += linearAnimation(0, spreadView.positionMarker2, 0, -spreadView.sideStageWidth * spreadView.snapPosition, root.animatedProgress)
167+ newTranslate += linearAnimation(0, spreadView.positionMarker2, 0, -spreadView.sideStageWidth * spreadView.snapPosition, root.animatedProgress);
171 if (spreadView.phase == 1) {
171 if (spreadView.phase == 1) {
172 if (nextInStack) {
172 if (nextInStack) {
173 if (model.stage == ApplicationInfoInterface.MainStage) {
173 if (model.stage == ApplicationInfoInterface.MainStage) {
174− var startValue = -spreadView.sideStageWidth * spreadView.snapPosition + (spreadView.sideStageVisible ? -spreadView.sideStageWidth : 0)
174+ var startValue = -spreadView.sideStageWidth * spreadView.snapPosition + (spreadView.sideStageVisible ? -spreadView.sideStageWidth : 0);
175 newTranslate += linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4, startValue, priv.phase2StartTranslate, root.animatedProgress);
175 newTranslate += linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4, startValue, priv.phase2StartTranslate, root.animatedProgress);
177 var endValue = -spreadView.width + spreadView.width * root.zIndex / 6;
177 var endValue = -spreadView.width + spreadView.width * root.zIndex / 6;
@@ -182,19 +182,19 @@ SpreadDelegate {
184 } else if (root.active) {
184 } else if (root.active) {
185− var startProgress = spreadView.positionMarker2 - (zIndex * spreadView.positionMarker2 / 2)
185+ var startProgress = spreadView.positionMarker2 - (zIndex * spreadView.positionMarker2 / 2);
186− var endProgress = spreadView.positionMarker4 - (zIndex * spreadView.tileDistance / spreadView.width)
186+ var endProgress = spreadView.positionMarker4 - (zIndex * spreadView.tileDistance / spreadView.width);
187− var startTranslate = -root.width + (shouldMoveAway ? -units.gu(4) : 0)
187+ var startTranslate = -root.width + (shouldMoveAway ? -units.gu(4) : 0);
188 newTranslate = linearAnimation(startProgress, endProgress, startTranslate, priv.phase2StartTranslate, root.progress);
188 newTranslate = linearAnimation(startProgress, endProgress, startTranslate, priv.phase2StartTranslate, root.progress);
190− var startProgress = spreadView.positionMarker2 - (zIndex * spreadView.positionMarker2 / 2)
190+ var startProgress = spreadView.positionMarker2 - (zIndex * spreadView.positionMarker2 / 2);
191− var endProgress = spreadView.positionMarker4 - (zIndex * spreadView.tileDistance / spreadView.width)
191+ var endProgress = spreadView.positionMarker4 - (zIndex * spreadView.tileDistance / spreadView.width);
192 newTranslate = linearAnimation(startProgress, endProgress, 0, priv.phase2StartTranslate, root.progress);
192 newTranslate = linearAnimation(startProgress, endProgress, 0, priv.phase2StartTranslate, root.progress);
196 if (spreadView.phase == 2) {
196 if (spreadView.phase == 2) {
197− newTranslate = -easingCurve.value * (spreadView.width - root.zIndex * animatedEndDistance)
197+ newTranslate = -easingCurve.value * (spreadView.width - root.zIndex * animatedEndDistance);
200 return newTranslate;
200 return newTranslate;
@@ -206,7 +206,7 @@ SpreadDelegate {
208 if (isSelected) {
208 if (isSelected) {
209− return linearAnimation(selectedProgress, negativeProgress, selectedScale, 1, root.progress)
209+ return linearAnimation(selectedProgress, negativeProgress, selectedScale, 1, root.progress);
212 if (spreadView.phase == 0) {
212 if (spreadView.phase == 0) {
@@ -220,7 +220,7 @@ SpreadDelegate {
220 } else if (active) {
220 } else if (active) {
221 return 1;
221 return 1;
223− return linearAnimation(0, spreadView.positionMarker2, root.startScale, root.endScale, root.progress)
223+ return linearAnimation(0, spreadView.positionMarker2, root.startScale, root.endScale, root.progress);
@@ -230,15 +230,15 @@ SpreadDelegate {
230 if (model.stage !== ApplicationInfoInterface.SideStage || spreadView.sideStageVisible) {
230 if (model.stage !== ApplicationInfoInterface.SideStage || spreadView.sideStageVisible) {
231 startScale = root.dragStartScale - ((root.dragStartScale - 1) * spreadView.snapPosition);
231 startScale = root.dragStartScale - ((root.dragStartScale - 1) * spreadView.snapPosition);
233− return linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4, startScale, priv.phase2StartScale, root.animatedProgress)
233+ return linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4, startScale, priv.phase2StartScale, root.animatedProgress);
235− var startProgress = spreadView.positionMarker2 - (zIndex * spreadView.positionMarker2 / 2)
235+ var startProgress = spreadView.positionMarker2 - (zIndex * spreadView.positionMarker2 / 2);
236− var endProgress = spreadView.positionMarker4 - (zIndex * spreadView.tileDistance / spreadView.width)
236+ var endProgress = spreadView.positionMarker4 - (zIndex * spreadView.tileDistance / spreadView.width);
237− return linearAnimation(startProgress, endProgress, 1, priv.phase2StartScale, root.animatedProgress)
237+ return linearAnimation(startProgress, endProgress, 1, priv.phase2StartScale, root.animatedProgress);
240 if (spreadView.phase == 2) {
240 if (spreadView.phase == 2) {
241− return root.startScale - easingCurve.value * (root.startScale - root.endScale)
241+ return root.startScale - easingCurve.value * (root.startScale - root.endScale);
244 return 1;
244 return 1;
@@ -249,36 +249,36 @@ SpreadDelegate {
249 return selectedAngle;
249 return selectedAngle;
251 if (isSelected) {
251 if (isSelected) {
252− return linearAnimation(selectedProgress, negativeProgress, selectedAngle, 0, root.progress)
252+ return linearAnimation(selectedProgress, negativeProgress, selectedAngle, 0, root.progress);
255 // The tile should rotate a bit when another one comes on top, but not when only dragging the side stage in
255 // The tile should rotate a bit when another one comes on top, but not when only dragging the side stage in
256− var shouldMoveAway = spreadView.nextInStack >= 0 && movedActive && (ApplicationManager.get(spreadView.nextInStack).stage === ApplicationInfoInterface.MainStage || model.stage == ApplicationInfoInterface.SideStage)
256+ var shouldMoveAway = spreadView.nextInStack >= 0 && movedActive && (ApplicationManager.get(spreadView.nextInStack).stage === ApplicationInfoInterface.MainStage || model.stage == ApplicationInfoInterface.SideStage);
258 if (spreadView.phase == 0) {
258 if (spreadView.phase == 0) {
259 if (nextInStack) {
259 if (nextInStack) {
260 if (model.stage == ApplicationInfoInterface.SideStage && !spreadView.sideStageVisible) {
260 if (model.stage == ApplicationInfoInterface.SideStage && !spreadView.sideStageVisible) {
261 return 0;
261 return 0;
263− return linearAnimation(0, spreadView.positionMarker2, root.startAngle, root.startAngle * (1-spreadView.snapPosition), root.animatedProgress)
263+ return linearAnimation(0, spreadView.positionMarker2, root.startAngle, root.startAngle * (1-spreadView.snapPosition), root.animatedProgress);
266 if (shouldMoveAway) {
266 if (shouldMoveAway) {
267− return linearAnimation(0, spreadView.positionMarker2, 0, root.startAngle * (1-spreadView.snapPosition), root.animatedProgress)
267+ return linearAnimation(0, spreadView.positionMarker2, 0, root.startAngle * (1-spreadView.snapPosition), root.animatedProgress);
270 if (spreadView.phase == 1) {
270 if (spreadView.phase == 1) {
271 if (nextInStack) {
271 if (nextInStack) {
272 if (model.stage == ApplicationInfoInterface.SideStage && !spreadView.sideStageVisible) {
272 if (model.stage == ApplicationInfoInterface.SideStage && !spreadView.sideStageVisible) {
273− return linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4, 0, priv.phase2StartAngle, root.animatedProgress)
273+ return linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4, 0, priv.phase2StartAngle, root.animatedProgress);
275− return linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4, root.startAngle * (1-spreadView.snapPosition), priv.phase2StartAngle, root.animatedProgress)
275+ return linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4, root.startAngle * (1-spreadView.snapPosition), priv.phase2StartAngle, root.animatedProgress);
278− var startProgress = spreadView.positionMarker2 - (zIndex * spreadView.positionMarker2 / 2)
278+ var startProgress = spreadView.positionMarker2 - (zIndex * spreadView.positionMarker2 / 2);
279− var endProgress = spreadView.positionMarker4 - (zIndex * spreadView.tileDistance / spreadView.width)
279+ var endProgress = spreadView.positionMarker4 - (zIndex * spreadView.tileDistance / spreadView.width);
280− var startAngle = shouldMoveAway ? root.startAngle * (1-spreadView.snapPosition) : 0
280+ var startAngle = shouldMoveAway ? root.startAngle * (1-spreadView.snapPosition) : 0;
281− return linearAnimation(startProgress, endProgress, startAngle, priv.phase2StartAngle, root.progress)
281+ return linearAnimation(startProgress, endProgress, startAngle, priv.phase2StartAngle, root.progress);
283 if (spreadView.phase == 2) {
283 if (spreadView.phase == 2) {
284 return root.startAngle - easingCurve.value * (root.startAngle - root.endAngle);
284 return root.startAngle - easingCurve.value * (root.startAngle - root.endAngle);
@@ -289,7 +289,7 @@ SpreadDelegate {
290 property real opacityTransform: {
290 property real opacityTransform: {
291 if (otherSelected && spreadView.phase == 2) {
291 if (otherSelected && spreadView.phase == 2) {
292− return linearAnimation(selectedProgress, negativeProgress, selectedOpacity, 0, root.progress)
292+ return linearAnimation(selectedProgress, negativeProgress, selectedOpacity, 0, root.progress);
295 return 1;
295 return 1;