on xenial help sign in
OpenEffect only live when not expanding animation in progress
093c546Michael Zanetti
Dash/GenericScopeView.qml+2−1
@@ -267,13 +267,14 @@ ScopeView {
267 topOpacity: (1 - gap * 1.2)
267 topOpacity: (1 - gap * 1.2)
268 bottomGapPx: positionPx + gap * (targetBottomGapPx - positionPx)
268 bottomGapPx: positionPx + gap * (targetBottomGapPx - positionPx)
269 bottomOverflow: units.gu(20)
269 bottomOverflow: units.gu(20)
270− live: true
270+ live: !expansionAnimation.running
271
271
272 property int targetBottomGapPx: height - units.gu(8) - bottomOverflow
272 property int targetBottomGapPx: height - units.gu(8) - bottomOverflow
273 property real gap: previewListView.open ? 1.0 : 0.0
273 property real gap: previewListView.open ? 1.0 : 0.0
274
274
275 Behavior on gap {
275 Behavior on gap {
276 NumberAnimation {
276 NumberAnimation {
277+ id: expansionAnimation
277 duration: 200
278 duration: 200
278 easing.type: Easing.InOutQuad
279 easing.type: Easing.InOutQuad
279 onRunningChanged: {
280 onRunningChanged: {