@@ -346,6 +346,7 @@ Item {
346346 duration: UbuntuAnimation.FastDuration
347347// duration: UbuntuAnimation.SleepyDuration
348348 }
349+
349350 ScriptAction {
350351 script: {
351352 if (spreadView.selectedIndex >= 0) {
@@ -365,7 +366,7 @@ Item {
365366
366367 Item {
367368 id: spreadRow
368− width: ApplicationManager.count * spreadView.tileDistance + (spreadView.width - spreadView.tileDistance) * 1.5 //(spreadView.width * spreadView.positionMarker2) + (spreadView.width - spreadView.tileDistance)
369+ width: ApplicationManager.count * spreadView.tileDistance + (spreadView.width - spreadView.tileDistance) * 1.5
369370
370371 x: spreadView.contentX
371372
@@ -388,6 +389,8 @@ Item {
388389 z: index
389390 x: index == 0 ? 0 : spreadView.width + (index - 1) * spreadView.tileDistance
390391
392+ // Each tile has a different progress value running from 0 to 1.
393+ // A progress value of 0 means the tile is at the right edge. 1 means the tile has reched the left edge.
391394 progress: {
392395 var tileProgress = (spreadView.shiftedContentX - index * spreadView.tileDistance) / spreadView.width
393396 // Tile 1 needs to move directly from the beginning...
@@ -397,6 +400,7 @@ Item {
397400 return tileProgress;
398401 }
399402
403+ // This mostly is the same as progress, just adds the snapping to stage 1 for tiles 0 and 1
400404 animatedProgress: {
401405 if (spreadView.stage == 0 && index < 2) {
402406 if (progress < spreadView.positionMarker1) {