From 2c11f0e78387869684e0ca108795a2ffb0be812d Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 7 Jun 2025 16:55:07 +1000 Subject: popouts: fix anim when fast movement --- modules/bar/popouts/Content.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml index 086a558..38fcb22 100644 --- a/modules/bar/popouts/Content.qml +++ b/modules/bar/popouts/Content.qml @@ -16,7 +16,7 @@ Item { property bool hasCurrent Behavior on currentCenter { - enabled: root.hasCurrent + enabled: root.implicitWidth > 0 NumberAnimation { duration: Appearance.anim.durations.normal @@ -27,7 +27,7 @@ Item { 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 Item { @@ -84,7 +84,7 @@ Item { } Behavior on implicitHeight { - enabled: root.hasCurrent + enabled: root.implicitWidth > 0 Anim { easing.bezierCurve: Appearance.anim.curves.emphasized -- cgit v1.2.3-freya