on xenial help sign in
limit the right edge animation to stage < 2 if there are only 2 apps running
commit73a8cbd079cd280ce65bd9982a492a3d01d133c1 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 4 Feb 2014, 22:48 (13 years ago) parenteb73d5f
1 file changed+5−1
qml/Stages/PhoneStage.qml+5−1
qml/Stages/PhoneStage.qml+5−1
@@ -212,7 +212,11 @@ Item {
212212 spreadView.contentX = -spreadView.shift;
213213 }
214214 if (dragging && attachedToView) {
215− spreadView.contentX = -touchX - spreadView.shift
215+ if (spreadRepeater.count == 2) {
216+ spreadView.contentX = Math.min(-touchX - spreadView.shift, spreadView.width * spreadView.positionMarker2 - spreadView.shift)
217+ } else {
218+ spreadView.contentX = -touchX - spreadView.shift
219+ }
216220 }
217221 if (attachedToView && spreadView.shiftedContentX >= spreadView.width * spreadView.positionMarker3) {
218222 attachedToView = false;