@@ -197,6 +197,8 @@ Item {
198 property bool attachedToView: true
198 property bool attachedToView: true
200+ property var gesturePoints: new Array()
200 onTouchXChanged: {
202 onTouchXChanged: {
201 if (!dragging && !priv.waitingForScreenshot) {
203 if (!dragging && !priv.waitingForScreenshot) {
202 priv.requestNewScreenshot();
204 priv.requestNewScreenshot();
@@ -210,10 +212,25 @@ Item {
210 attachedToView = false;
212 attachedToView = false;
211 spreadView.snap();
213 spreadView.snap();
215+ gesturePoints.push(touchX)
215 onDraggingChanged: {
218 onDraggingChanged: {
216− print("Dragging changed", dragging)
219+ var oneWayFlick = true;
220+ var smallestX = spreadDragArea.width;
221+ for (var i = 0; i < gesturePoints.length; i++) {
222+ if (gesturePoints[i] >= smallestX) {
223+ oneWayFlick = false;
226+ smallestX = gesturePoints[i];
230+ if (oneWayFlick && distance < -units.gu(2) && distance > spreadView.positionMarker1 * -spreadView.width) {
231+ spreadView.snapTo(1)
217 if (!dragging && attachedToView) {
234 if (!dragging && attachedToView) {
218 spreadView.snap();
235 spreadView.snap();