@@ -144,8 +144,8 @@ Showable {
144 anchors.left: bar.left
144 anchors.left: bar.left
145 height: bar.height
145 height: bar.height
147− forceScrollingPercentage: 0.3
147+ forceScrollingPercentage: 0.33
148− thresholdAreaWidth: units.gu(0.5)
148+ stopScrollThreshold: units.gu(0.75)
149 direction: Qt.RightToLeft
149 direction: Qt.RightToLeft
150 lateralPosition: -1
150 lateralPosition: -1
@@ -158,8 +158,8 @@ Showable {
158 anchors.right: bar.right
158 anchors.right: bar.right
159 height: bar.height
159 height: bar.height
161− forceScrollingPercentage: 0.3
161+ forceScrollingPercentage: 0.33
162− thresholdAreaWidth: units.gu(0.5)
162+ stopScrollThreshold: units.gu(0.75)
163 direction: Qt.LeftToRight
163 direction: Qt.LeftToRight
164 lateralPosition: -1
164 lateralPosition: -1
@@ -197,8 +197,12 @@ Showable {
197 distanceThreshold: 0
197 distanceThreshold: 0
200− AxisVelocityCalculator {
200+ PanelVelocityCalculator {
201 id: yVelocityCalculator
201 id: yVelocityCalculator
202+ velocityThreashold: 0.5
203+ trackedValue: d.activeDragHandle ? d.activeDragHandle.touchSceneY : 0
205+ onVelocityThreasholdTriggered: bar.updateItemFromLateralPosition(bar.lateralPosition);
204 Connections {
208 Connections {
@@ -206,7 +210,7 @@ Showable {
206 onRunningChanged: {
210 onRunningChanged: {
207 if (showAnimation.running) {
211 if (showAnimation.running) {
208 root.state = "commit";
212 root.state = "commit";
209− bar.alignLeft();
213+ bar.alignIndicatorsToLeft();
@@ -281,8 +285,7 @@ Showable {
281 if (!d.activeDragHandle) return false;
285 if (!d.activeDragHandle) return false;
282 if (!d.activeDragHandle.dragging) return false;
286 if (!d.activeDragHandle.dragging) return false;
284− yVelocityCalculator.trackedPosition = d.activeDragHandle ? d.activeDragHandle.touchSceneY : 0;
285− return Math.abs(yVelocityCalculator.calculate()) < 0.4;
288+ return !yVelocityCalculator.stopLateralChanges;
288 // left scroll bar handling
291 // left scroll bar handling
@@ -293,7 +296,7 @@ Showable {
293 if (!d.activeDragHandle.dragging) return -1;
296 if (!d.activeDragHandle.dragging) return -1;
295 var mapped = d.activeDragHandle.mapToItem(leftScroller, d.activeDragHandle.touchX, 0);
298 var mapped = d.activeDragHandle.mapToItem(leftScroller, d.activeDragHandle.touchX, 0);
296− return mapped.x
299+ return mapped.x;
299 // right scroll bar handling
302 // right scroll bar handling
@@ -304,7 +307,7 @@ Showable {
304 if (!d.activeDragHandle.dragging) return -1;
307 if (!d.activeDragHandle.dragging) return -1;
306 var mapped = d.activeDragHandle.mapToItem(rightScroller, d.activeDragHandle.touchX, 0);
309 var mapped = d.activeDragHandle.mapToItem(rightScroller, d.activeDragHandle.touchX, 0);
307− return mapped.x
310+ return mapped.x;