on xenial help sign in
don't move other tiles any more when an app is selected
commita84c35bf99fce8afe1ad0275ffece42dc9fc26f6 authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 3 Feb 2014, 13:17 (13 years ago) parent4f909e2
2 files changed+14−2
qml/Stages/PhoneStage.qml+2−2 qml/Stages/TransformedSpreadDelegate.qml+12
qml/Stages/PhoneStage.qml+2−2
@@ -311,8 +311,8 @@ Item {
311311 target: spreadView
312312 property: "contentX"
313313 to: snapAnimation.targetContentX
314− duration: UbuntuAnimation.FastDuration
315−// duration: UbuntuAnimation.SleepyDuration
314+// duration: UbuntuAnimation.FastDuration
315+ duration: UbuntuAnimation.SleepyDuration
316316 }
317317 ScriptAction {
318318 script: {
qml/Stages/TransformedSpreadDelegate.qml+12
@@ -106,6 +106,10 @@ SpreadDelegate {
106106 }
107107
108108 property real xTranslate: {
109+ if (priv.otherSelected) {
110+ return priv.selectedXTranslate;
111+ }
112+
109113 var translation = 0;
110114 switch (index) {
111115 case 0:
@@ -150,6 +154,10 @@ SpreadDelegate {
150154 return translation;
151155 }
152156 property real angle: {
157+ if (priv.otherSelected) {
158+ return priv.selectedAngle
159+ }
160+
153161 var newAngle = 0;
154162 switch (index) {
155163 case 0:
@@ -179,6 +187,10 @@ SpreadDelegate {
179187 return newAngle;
180188 }
181189 property real scale: {
190+ if (priv.otherSelected) {
191+ return priv.selectedScale;
192+ }
193+
182194 var newScale = 1;
183195 switch (index) {
184196 case 0: