summaryrefslogtreecommitdiff
path: root/modules/controlcenter
diff options
context:
space:
mode:
Diffstat (limited to 'modules/controlcenter')
-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;
}
}
}