on xenial help sign in
cancel spread when clicking outside of tiles
commit0c98aa45d3c1b2ee5d0cf682cb4b18294f1f9329 authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 8 Sep 2016, 18:30 (10 years ago) parent0f5a760
1 file changed+8
qml/Stage/Stage.qml+8
qml/Stage/Stage.qml+8
@@ -363,6 +363,7 @@ AbstractStage {
363363 PropertyChanges { target: spreadItem; focus: true }
364364 PropertyChanges { target: hoverMouseArea; enabled: true }
365365 PropertyChanges { target: rightEdgeDragArea; enabled: false }
366+ PropertyChanges { target: cancelSpreadMouseArea; enabled: true }
366367 },
367368 State {
368369 name: "stagedRightEdge"; when: (rightEdgeDragArea.dragging || edgeBarrier.progress > 0) && root.mode == "staged"
@@ -419,6 +420,13 @@ AbstractStage {
419420
420421 ]
421422
423+ MouseArea {
424+ id: cancelSpreadMouseArea
425+ anchors.fill: parent
426+ enabled: false
427+ onClicked: priv.goneToSpread = false
428+ }
429+
422430 FocusScope {
423431 id: appContainer
424432 objectName: "appContainer"