mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-01 19:18:28 -04:00
control center: fix height expansion animation being out of sync
This commit is contained in:
@@ -423,12 +423,14 @@ Column {
|
||||
}
|
||||
}
|
||||
|
||||
// targetValue-based direction: `active` can be stale when the behavior triggers
|
||||
Behavior on height {
|
||||
enabled: true
|
||||
id: detailHeightBehavior
|
||||
NumberAnimation {
|
||||
duration: Theme.variantDuration(Theme.popoutAnimationDuration, detailHost.active)
|
||||
readonly property bool growing: (detailHeightBehavior.targetValue ?? 0) >= detailHost.height
|
||||
duration: Theme.variantDuration(Theme.popoutAnimationDuration, growing)
|
||||
easing.type: Easing.BezierSpline
|
||||
easing.bezierCurve: detailHost.active ? Theme.variantPopoutEnterCurve : Theme.variantPopoutExitCurve
|
||||
easing.bezierCurve: growing ? Theme.variantPopoutEnterCurve : Theme.variantPopoutExitCurve
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user