popouts: fix anim when fast movement
This commit is contained in:
parent
5dfb3c43ed
commit
2c11f0e783
1 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ Item {
|
||||||
property bool hasCurrent
|
property bool hasCurrent
|
||||||
|
|
||||||
Behavior on currentCenter {
|
Behavior on currentCenter {
|
||||||
enabled: root.hasCurrent
|
enabled: root.implicitWidth > 0
|
||||||
|
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: Appearance.anim.durations.normal
|
duration: Appearance.anim.durations.normal
|
||||||
|
|
@ -27,7 +27,7 @@ Item {
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
implicitWidth: root.hasCurrent ? (content.children.find(c => c.shouldBeActive)?.implicitWidth ?? 0) + Appearance.padding.large * 2 : 0
|
implicitWidth: hasCurrent ? (content.children.find(c => c.shouldBeActive)?.implicitWidth ?? 0) + Appearance.padding.large * 2 : 0
|
||||||
implicitHeight: (content.children.find(c => c.shouldBeActive)?.implicitHeight ?? 0) + Appearance.padding.large * 2
|
implicitHeight: (content.children.find(c => c.shouldBeActive)?.implicitHeight ?? 0) + Appearance.padding.large * 2
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
@ -84,7 +84,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on implicitHeight {
|
Behavior on implicitHeight {
|
||||||
enabled: root.hasCurrent
|
enabled: root.implicitWidth > 0
|
||||||
|
|
||||||
Anim {
|
Anim {
|
||||||
easing.bezierCurve: Appearance.anim.curves.emphasized
|
easing.bezierCurve: Appearance.anim.curves.emphasized
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue