diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-07 16:55:07 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-07 16:55:07 +1000 |
| commit | 2c11f0e78387869684e0ca108795a2ffb0be812d (patch) | |
| tree | ac8d802ee1739f504ee1c5faa3f69221a095b9d1 /modules/bar/popouts/Content.qml | |
| parent | Merge pull request #2 from outfoxxed/popouts-multimon (diff) | |
| download | caelestia-shell-2c11f0e78387869684e0ca108795a2ffb0be812d.tar.gz caelestia-shell-2c11f0e78387869684e0ca108795a2ffb0be812d.tar.bz2 caelestia-shell-2c11f0e78387869684e0ca108795a2ffb0be812d.zip | |
popouts: fix anim when fast movement
Diffstat (limited to 'modules/bar/popouts/Content.qml')
| -rw-r--r-- | modules/bar/popouts/Content.qml | 6 |
1 files changed, 3 insertions, 3 deletions
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 |