on xenial help sign in
added comments for isActive
088b2c7Michael Zanetti
qml/Stages/PhoneStage.qml+2
@@ -114,6 +114,8 @@ Rectangle {
114 contentWidth: spreadRow.width - shift
114 contentWidth: spreadRow.width - shift
115 contentX: -shift
115 contentX: -shift
116
116
117+ // This indicates when the spreadView is active. That means, all the animations
118+ // are activated and tiles need to line up for the spread.
117 readonly property bool isActive: shiftedContentX > 0 || spreadDragArea.dragging
119 readonly property bool isActive: shiftedContentX > 0 || spreadDragArea.dragging
118
120
119 // The flickable needs to fill the screen in order to get touch events all over.
121 // The flickable needs to fill the screen in order to get touch events all over.
qml/Stages/TabletStage.qml+2−1
@@ -153,8 +153,9 @@ Rectangle {
153 property int sideStageWidth: units.gu(40)
153 property int sideStageWidth: units.gu(40)
154 property bool sideStageVisible: priv.sideStageAppId
154 property bool sideStageVisible: priv.sideStageAppId
155
155
156+ // This indicates when the spreadView is active. That means, all the animations
157+ // are activated and tiles need to line up for the spread.
156 readonly property bool isActive: shiftedContentX > 0 || spreadDragArea.dragging
158 readonly property bool isActive: shiftedContentX > 0 || spreadDragArea.dragging
157− onIsActiveChanged: print("spreadView isActive changed", isActive)
158
159
159 // The flickable needs to fill the screen in order to get touch events all over.
160 // The flickable needs to fill the screen in order to get touch events all over.
160 // However, we don't want to the user to be able to scroll back all the way. For
161 // However, we don't want to the user to be able to scroll back all the way. For