@@ -18,7 +18,7 @@ Item {
1818 property int totalItems: 0
1919 property Item flickable: null
2020 property int margins: units.gu(5)
21− property int foldingAreaWidth: units.gu(5)
21+ property int foldingAreaWidth: units.gu(10)
2222
2323 property int maxVisibleItems: 5
2424
@@ -32,16 +32,20 @@ Item {
3232
3333 // Internal
3434 readonly property real progressSlice: 1 / totalItems;
35− readonly property real startProgress: Math.max(0, index - 2) * progressSlice
35+ readonly property real startProgress: (index - 2) * progressSlice
3636 readonly property real endProgress: (index + 3) * progressSlice
3737
38− readonly property real startX: index < maxVisibleItems ?
39− margins + index * unfoldedDistance
40− : contentWidth - foldingAreaWidth + (startLayout.value * foldingAreaWidth)
38+// readonly property real startX: index < maxVisibleItems ?
39+// margins + index * unfoldedDistance
40+// : contentWidth - foldingAreaWidth + (startLayout.value * foldingAreaWidth)
4141
42− readonly property real endX: totalItems - maxVisibleItems < index ?
43− contentWidth - (totalItems - index) * unfoldedDistance
44− : margins + foldingAreaWidth - (endLayout.value * foldingAreaWidth)
42+ readonly property real startX: contentWidth - foldingAreaWidth + (startLayout.value * foldingAreaWidth)
43+
44+// readonly property real endX: totalItems - maxVisibleItems < index ?
45+// contentWidth - (totalItems - index) * unfoldedDistance
46+// : margins + foldingAreaWidth - (endLayout.value * foldingAreaWidth)
47+
48+ readonly property real endX: margins + foldingAreaWidth - (endLayout.value * foldingAreaWidth)
4549
4650 readonly property int animatedX: transitionCurve.value * (endX - startX) + startX
4751
@@ -76,7 +80,7 @@ Item {
7680
7781 EasingCurve {
7882 id: transitionCurve
79− type: easingCurve.InOutSine
83+ type: EasingCurve.InOutSine
8084
8185 readonly property real normalizedEndProgress: endProgress - startProgress
8286 readonly property real normalizedProgress: (root.flickableProgress - root.startProgress) / normalizedEndProgress