on xenial help sign in
limit the right edge animation to stage < 2 if there are only 2 apps running
73a8cbdMichael Zanetti
qml/Stages/PhoneStage.qml+5−1
@@ -212,7 +212,11 @@ Item {
212 spreadView.contentX = -spreadView.shift;
212 spreadView.contentX = -spreadView.shift;
213 }
213 }
214 if (dragging && attachedToView) {
214 if (dragging && attachedToView) {
215+ if (spreadRepeater.count == 2) {
215− spreadView.contentX = -touchX - spreadView.shift
216+ spreadView.contentX = Math.min(-touchX - spreadView.shift, spreadView.width * spreadView.positionMarker2 - spreadView.shift)
217+ } else {
218+ spreadView.contentX = -touchX - spreadView.shift
219+ }
216 }
220 }
217 if (attachedToView && spreadView.shiftedContentX >= spreadView.width * spreadView.positionMarker3) {
221 if (attachedToView && spreadView.shiftedContentX >= spreadView.width * spreadView.positionMarker3) {
218 attachedToView = false;
222 attachedToView = false;