@@ -34,9 +34,9 @@ AbstractStage {
34 function updateFocusedAppOrientation() { /* TODO */ }
34 function updateFocusedAppOrientation() { /* TODO */ }
35 function updateFocusedAppOrientationAnimated() { /* TODO */}
35 function updateFocusedAppOrientationAnimated() { /* TODO */}
36 function pushRightEdge(amount) {
36 function pushRightEdge(amount) {
37− if (spread.state === "") {
37+// if (state === "windowed" || state == "") {
38 edgeBarrier.push(amount);
38 edgeBarrier.push(amount);
41 function closeFocusedDelegate() {
41 function closeFocusedDelegate() {
42 if (priv.focusedAppDelegate && !priv.focusedAppDelegate.isDash) {
42 if (priv.focusedAppDelegate && !priv.focusedAppDelegate.isDash) {
@@ -340,14 +340,14 @@ AbstractStage {
340 PropertyChanges { target: hoverMouseArea; enabled: true }
340 PropertyChanges { target: hoverMouseArea; enabled: true }
343− name: "stagedRightEdge"; when: rightEdgeDragArea.dragging && root.mode == "staged"
343+ name: "stagedRightEdge"; when: (rightEdgeDragArea.dragging || edgeBarrier.progress > 0) && root.mode == "staged"
346− name: "sideStagedRightEdge"; when: rightEdgeDragArea.dragging && root.mode == "stagedWithSideStage"
346+ name: "sideStagedRightEdge"; when: (rightEdgeDragArea.dragging || edgeBarrier.progress > 0) && root.mode == "stagedWithSideStage"
347// PropertyChanges { target: priv; nextInStack: priv.sideStageDelegate && priv.sideStageDelegate.itemIndex < 2 ? 2 : 1 }
347// PropertyChanges { target: priv; nextInStack: priv.sideStageDelegate && priv.sideStageDelegate.itemIndex < 2 ? 2 : 1 }
350− name: "windowedRightEdge"; when: rightEdgeDragArea.dragging && root.mode == "windowed"
350+ name: "windowedRightEdge"; when: (rightEdgeDragArea.dragging || edgeBarrier.progress > 0) && root.mode == "windowed"
353 name: "staged"; when: root.mode === "staged"
353 name: "staged"; when: root.mode === "staged"
@@ -932,7 +932,7 @@ AbstractStage {
932 when: (root.mode == "staged" || root.mode == "stagedWithSideStage") && (root.state == "sideStagedRightEdge" || root.state == "stagedRightEdge" || rightEdgeFocusAnimation.running || hidingAnimation.running)
932 when: (root.mode == "staged" || root.mode == "stagedWithSideStage") && (root.state == "sideStagedRightEdge" || root.state == "stagedRightEdge" || rightEdgeFocusAnimation.running || hidingAnimation.running)
933 PropertyChanges {
933 PropertyChanges {
934 target: stagedRightEdgeMaths
934 target: stagedRightEdgeMaths
935− progress: rightEdgeDragArea.progress
935+ progress: Math.max(edgeBarrier.progress, rightEdgeDragArea.progress)
937 PropertyChanges {
937 PropertyChanges {
938 target: appDelegate
938 target: appDelegate
@@ -955,10 +955,10 @@ AbstractStage {
957 name: "windowedRightEdge"
957 name: "windowedRightEdge"
958− when: root.mode == "windowed" && (root.state == "windowedRightEdge" || rightEdgeFocusAnimation.running || hidingAnimation.running)
958+ when: root.mode == "windowed" && (root.state == "windowedRightEdge" || rightEdgeFocusAnimation.running || hidingAnimation.running || edgeBarrier.progress > 0)
959 PropertyChanges {
959 PropertyChanges {
960 target: windowedRightEdgeMaths
960 target: windowedRightEdgeMaths
961− progress: rightEdgeDragArea.progress
961+ progress: Math.max(rightEdgeDragArea.progress, edgeBarrier.progress)
963 PropertyChanges {
963 PropertyChanges {
964 target: appDelegate
964 target: appDelegate
@@ -1439,7 +1439,12 @@ AbstractStage {
1439 // NB: it does its own positioning according to the specified edge
1439 // NB: it does its own positioning according to the specified edge
1440 edge: Qt.RightEdge
1440 edge: Qt.RightEdge
1442− onPassed: { spread.show(); }
1442+ onProgressChanged: {
1443+ if (progress > spreadItem.rightEdgeBreakPoint) {
1444+ priv.goneToSpread = true;
1443 material: Component {
1448 material: Component {
1445 Rectangle {
1450 Rectangle {
@@ -1533,7 +1538,7 @@ AbstractStage {
1533 property var gesturePoints: new Array()
1538 property var gesturePoints: new Array()
1534 property bool cancelled: false
1539 property bool cancelled: false
1536− property real progress: -touchPosition.x / root.width
1541+ property real progress: dragging ? -touchPosition.x / root.width : 0
1538 onTouchPositionChanged: {
1543 onTouchPositionChanged: {
1539 gesturePoints.push(touchPosition.x);
1544 gesturePoints.push(touchPosition.x);