fix issues from review
commitba481c40f0ec89014996ebbfde44d9ac3a41484e
authorMichael Zanetti <michael.zanetti@canonical.com>
dateMon 7 Mar 2016, 12:51 (11 years ago)
parent2655afe
qml/Stages/PhoneStage.qml+1−1
@@ -666,7 +666,7 @@ AbstractStage {
666666
667667 onPassed: {
668668 // Add 1 pixel to make sure we definitely hit positionMarker4 even with rounding errors of the animation.
669− snapAnimation.targetContentX = root.width * spreadView.positionMarker4 + 1 - spreadView.shift;
669+ snapAnimation.targetContentX = (root.width * spreadView.positionMarker4) + 1 - spreadView.shift;
670670 snapAnimation.start();
671671 }
672672 material: Component {
qml/Stages/TabletStage.qml+1−1
@@ -820,7 +820,7 @@ AbstractStage {
820820
821821 onPassed: {
822822 // Add 1 pixel to make sure we definitely hit positionMarker4 even with rounding errors of the animation.
823− snapAnimation.targetContentX = root.width * spreadView.positionMarker4 + 1 - spreadView.shift;
823+ snapAnimation.targetContentX = (root.width * spreadView.positionMarker4) + 1 - spreadView.shift;
824824 snapAnimation.start();
825825 }
826826 material: Component {