@@ -227,12 +227,14 @@ Item {
227227 var stepAnimation = findInvisibleChild(carouselList, "stepAnimation");
228228 var stepDiff = 0;
229229 stepAnimation.onRunningChanged.connect(function() { if (stepAnimation.running) stepDiff = Math.abs(carouselList.contentX - stepAnimation.to); })
230− while (carouselList.realContentX < carouselList.realContentWidth - carouselList.realWidth) {
230+ var overshootOnce = false;
231+ while (!overshootOnce) {
232+ overshootOnce = carouselList.realContentX > carouselList.realContentWidth - carouselList.realWidth;
231233 mouseFlick(carousel, carousel.width - units.gu(1),
232234 carousel.height / 2,
233235 units.gu(2),
234236 carousel.height / 2);
235− wait(1000);
237+ tryCompare(carouselList, "moving", false);
236238 }
237239 verify(stepDiff < 1);
238240 var x = carouselList.getXFromContinuousIndex(carousel.model - 1);