on xenial help sign in
don't disable the spread for 2 running apps
fe57a2aMichael Zanetti
qml/Stages/PhoneStage.qml+2−6
@@ -233,11 +233,7 @@ Item {
233 spreadView.contentX = -spreadView.shift;
233 spreadView.contentX = -spreadView.shift;
234 }
234 }
235 if (dragging && attachedToView) {
235 if (dragging && attachedToView) {
236− if (spreadRepeater.count == 2) {
237− spreadView.contentX = Math.min(-touchX - spreadView.shift, spreadView.width * spreadView.positionMarker2 - spreadView.shift)
236+ spreadView.contentX = -touchX - spreadView.shift
238− } else {
239− spreadView.contentX = -touchX - spreadView.shift
240− }
241 }
237 }
242 if (attachedToView && spreadView.shiftedContentX >= spreadView.width * spreadView.positionMarker3) {
238 if (attachedToView && spreadView.shiftedContentX >= spreadView.width * spreadView.positionMarker3) {
243 attachedToView = false;
239 attachedToView = false;
@@ -386,7 +382,7 @@ Item {
386
382
387 Item {
383 Item {
388 id: spreadRow
384 id: spreadRow
389− width: ApplicationManager.count * spreadView.tileDistance + (spreadView.width - spreadView.tileDistance) * 1.5
385+ width: Math.max(3, ApplicationManager.count) * spreadView.tileDistance + (spreadView.width - spreadView.tileDistance) * 1.5
390
386
391 x: spreadView.contentX
387 x: spreadView.contentX
392
388