on xenial help sign in
prevent tile 0 from moving to the right.

This might happen depending on where the starting point of the drag is located.

commit9f8afb7e4e36f04928eee98160cdf97173342b78 authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 5 Feb 2014, 18:25 (13 years ago) parent7f75348
1 file changed+2−2
qml/Stages/TransformedSpreadDelegate.qml+2−2
qml/Stages/TransformedSpreadDelegate.qml+2−2
@@ -116,7 +116,7 @@ SpreadDelegate {
116116 switch (index) {
117117 case 0:
118118 if (spreadView.stage == 0) {
119− return linearAnimation(0, spreadView.positionMarker2, 0, -spreadView.width * .25, root.animatedProgress)
119+ return Math.min(0, linearAnimation(0, spreadView.positionMarker2, 0, -spreadView.width * .25, root.animatedProgress))
120120 } else if (spreadView.stage == 1){
121121 return linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4, -spreadView.width * .25, priv.stage2startTranslate, root.progress)
122122 } else if (!priv.isSelected){ // Stage 2
@@ -158,7 +158,7 @@ SpreadDelegate {
158158 switch (index) {
159159 case 0:
160160 if (spreadView.stage == 0) {
161− return linearAnimation(0, spreadView.positionMarker2, 0, root.tile0SnapAngle, root.animatedProgress)
161+ return Math.max(0, linearAnimation(0, spreadView.positionMarker2, 0, root.tile0SnapAngle, root.animatedProgress))
162162 } else if (spreadView.stage == 1) {
163163 return linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4, root.tile0SnapAngle, stage2startAngle, root.progress)
164164 }