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 id: loader
anchors.fill: parent anchors.fill: parent
clip: true clip: false
asynchronous: true asynchronous: true
active: { active: {
if (root.session.activeIndex === pane.index) // Keep loaders active for current and adjacent panels
return true; // This prevents content from disappearing during panel transitions
const diff = Math.abs(root.session.activeIndex - pane.index);
const ly = -layout.y; return diff <= 1;
const ty = pane.index * root.height;
return ly + root.height > ty && ly < ty + root.height;
} }
} }
} }