on xenial help sign in
OpenEffect only live when not expanding animation in progress
commit093c5466dbce6a670751ec7d0e9d708c058a3fd6 authorMichael Zanetti <michael.zanetti@canonical.com> dateFri 11 Oct 2013, 18:23 (13 years ago) parent04a625f
1 file changed+2−1
Dash/GenericScopeView.qml+2−1
Dash/GenericScopeView.qml+2−1
@@ -267,13 +267,14 @@ ScopeView {
267267 topOpacity: (1 - gap * 1.2)
268268 bottomGapPx: positionPx + gap * (targetBottomGapPx - positionPx)
269269 bottomOverflow: units.gu(20)
270− live: true
270+ live: !expansionAnimation.running
271271
272272 property int targetBottomGapPx: height - units.gu(8) - bottomOverflow
273273 property real gap: previewListView.open ? 1.0 : 0.0
274274
275275 Behavior on gap {
276276 NumberAnimation {
277+ id: expansionAnimation
277278 duration: 200
278279 easing.type: Easing.InOutQuad
279280 onRunningChanged: {