controlcenter: animation disappearing glitch fix
This commit is contained in:
parent
5be8d68ae7
commit
041be54c69
1 changed files with 5 additions and 7 deletions
|
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue