controlcenter: animation disappearing glitch fix

This commit is contained in:
ATMDA 2025-11-15 19:31:26 -05:00
parent 5be8d68ae7
commit 041be54c69

View file

@ -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;
}
}
}