summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-15 19:31:26 -0500
committerATMDA <atdma2600@gmail.com>2025-11-15 19:31:26 -0500
commit041be54c69b1c9a2fe5eacca7d765a9ccc37aad6 (patch)
tree0698a4578651c2ed66d979b9e093cce1116aabb1
parentcontrolcenter: increased animation on fade-in (wallpaper and applications) (diff)
downloadcaelestia-shell-041be54c69b1c9a2fe5eacca7d765a9ccc37aad6.tar.gz
caelestia-shell-041be54c69b1c9a2fe5eacca7d765a9ccc37aad6.tar.bz2
caelestia-shell-041be54c69b1c9a2fe5eacca7d765a9ccc37aad6.zip
controlcenter: animation disappearing glitch fix
-rw-r--r--modules/controlcenter/Panes.qml12
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/controlcenter/Panes.qml b/modules/controlcenter/Panes.qml
index 52ad7f2..77b2fd2 100644
--- a/modules/controlcenter/Panes.qml
+++ b/modules/controlcenter/Panes.qml
@@ -88,15 +88,13 @@ ClippingRectangle {
id: loader
anchors.fill: parent
- clip: true
+ clip: false
asynchronous: true
active: {
- if (root.session.activeIndex === pane.index)
- return true;
-
- const ly = -layout.y;
- const ty = pane.index * root.height;
- return ly + root.height > ty && ly < ty + root.height;
+ // Keep loaders active for current and adjacent panels
+ // This prevents content from disappearing during panel transitions
+ const diff = Math.abs(root.session.activeIndex - pane.index);
+ return diff <= 1;
}
}
}