@@ -18,7 +18,7 @@ Item {
18 property int totalItems: 0
18 property int totalItems: 0
19 property Item flickable: null
19 property Item flickable: null
20 property int margins: units.gu(5)
20 property int margins: units.gu(5)
21− property int foldingAreaWidth: units.gu(5)
21+ property int foldingAreaWidth: units.gu(10)
23 property int maxVisibleItems: 5
23 property int maxVisibleItems: 5
@@ -32,16 +32,20 @@ Item {
33 // Internal
33 // Internal
34 readonly property real progressSlice: 1 / totalItems;
34 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
36 readonly property real endProgress: (index + 3) * progressSlice
36 readonly property real endProgress: (index + 3) * progressSlice
38− readonly property real startX: index < maxVisibleItems ?
38+// readonly property real startX: index < maxVisibleItems ?
39− margins + index * unfoldedDistance
39+// margins + index * unfoldedDistance
40− : contentWidth - foldingAreaWidth + (startLayout.value * foldingAreaWidth)
40+// : contentWidth - foldingAreaWidth + (startLayout.value * foldingAreaWidth)
42+ readonly property real startX: contentWidth - foldingAreaWidth + (startLayout.value * foldingAreaWidth)
42− readonly property real endX: totalItems - maxVisibleItems < index ?
44+// readonly property real endX: totalItems - maxVisibleItems < index ?
43− contentWidth - (totalItems - index) * unfoldedDistance
45+// contentWidth - (totalItems - index) * unfoldedDistance
44− : margins + foldingAreaWidth - (endLayout.value * foldingAreaWidth)
46+// : margins + foldingAreaWidth - (endLayout.value * foldingAreaWidth)
48+ readonly property real endX: margins + foldingAreaWidth - (endLayout.value * foldingAreaWidth)
46 readonly property int animatedX: transitionCurve.value * (endX - startX) + startX
50 readonly property int animatedX: transitionCurve.value * (endX - startX) + startX
@@ -76,7 +80,7 @@ Item {
77 EasingCurve {
81 EasingCurve {
78 id: transitionCurve
82 id: transitionCurve
79− type: easingCurve.InOutSine
83+ type: EasingCurve.InOutSine
81 readonly property real normalizedEndProgress: endProgress - startProgress
85 readonly property real normalizedEndProgress: endProgress - startProgress
82 readonly property real normalizedProgress: (root.flickableProgress - root.startProgress) / normalizedEndProgress
86 readonly property real normalizedProgress: (root.flickableProgress - root.startProgress) / normalizedEndProgress