@@ -14,7 +14,7 @@ Item {
15 anchors.bottom: parent.bottom
15 anchors.bottom: parent.bottom
16 anchors.horizontalCenter: parent.horizontalCenter
16 anchors.horizontalCenter: parent.horizontalCenter
17− Behavior on anchors.horizontalCenterOffset { UbuntuNumberAnimation { duration: UbuntuAnimation.SlowDuration } }
17+ Behavior on anchors.horizontalCenterOffset { NumberAnimation { duration: UbuntuAnimation.SlowDuration } }
18// anchors.left: parent.left
18// anchors.left: parent.left
19 spacing: units.gu(1)
19 spacing: units.gu(1)
@@ -112,6 +112,7 @@ Item {
112 anchors { left: parent.left; top: parent.top; bottom: parent.bottom; topMargin: units.gu(6); bottomMargin: units.gu(1) }
112 anchors { left: parent.left; top: parent.top; bottom: parent.bottom; topMargin: units.gu(6); bottomMargin: units.gu(1) }
113 width: units.gu(5)
113 width: units.gu(5)
114 color: "#33000000"
114 color: "#33000000"
115+ visible: (row.width - root.width + units.gu(10)) / 2 - row.anchors.horizontalCenterOffset > units.gu(5)
115 MouseArea {
116 MouseArea {
116 id: leftScrollArea
117 id: leftScrollArea
117 anchors.fill: parent
118 anchors.fill: parent
@@ -123,6 +124,7 @@ Item {
123 anchors { right: parent.right; top: parent.top; bottom: parent.bottom; topMargin: units.gu(6); bottomMargin: units.gu(1) }
124 anchors { right: parent.right; top: parent.top; bottom: parent.bottom; topMargin: units.gu(6); bottomMargin: units.gu(1) }
124 width: units.gu(5)
125 width: units.gu(5)
125 color: "#33000000"
126 color: "#33000000"
127+ visible: (row.width - root.width + units.gu(10)) / 2 + row.anchors.horizontalCenterOffset > units.gu(5)
126 MouseArea {
128 MouseArea {
127 id: rightScrollArea
129 id: rightScrollArea
128 anchors.fill: parent
130 anchors.fill: parent
@@ -134,9 +136,10 @@ Item {
134 repeat: true
136 repeat: true
135 running: leftScrollArea.containsMouse || rightScrollArea.containsMouse
137 running: leftScrollArea.containsMouse || rightScrollArea.containsMouse
136 interval: UbuntuAnimation.SlowDuration
138 interval: UbuntuAnimation.SlowDuration
139+ triggeredOnStart: true
137 onTriggered: {
140 onTriggered: {
138 var newOffset = row.anchors.horizontalCenterOffset;
141 var newOffset = row.anchors.horizontalCenterOffset;
139− var maxOffset = Math.max((row.width - root.width) / 2, 0);
142+ var maxOffset = Math.max((row.width - root.width + units.gu(10)) / 2, 0);
140 if (leftScrollArea.containsMouse) {
143 if (leftScrollArea.containsMouse) {
141 newOffset += units.gu(20)
144 newOffset += units.gu(20)