on xenial help sign in
don't allow closing the dash in spread
f7f4d98Michael Zanetti
qml/Stages/SpreadDelegate.qml+5
@@ -178,6 +178,11 @@ Item {
178 }
178 }
179
179
180 onDragEnd: {
180 onDragEnd: {
181+ if (model.appId == "unity8-dash") {
182+ animation.animate("center")
183+ return;
184+ }
185+
181 // velocity and distance values specified by design prototype
186 // velocity and distance values specified by design prototype
182 if ((dragVelocity < -units.gu(40) && distance < -units.gu(8)) || distance < -root.height / 2) {
187 if ((dragVelocity < -units.gu(40) && distance < -units.gu(8)) || distance < -root.height / 2) {
183 animation.animate("up")
188 animation.animate("up")