Fix animation when clicking grouped windows in task manager
Since hidden windows are not placed in the grid-like view, `cell.isReady` is always false for them, and they never switch to the "active-hidden" state when the effect is turned on. This commit makes sure that windows hide even if their cell isn't ready.
This commit is contained in:
parent
a902b66299
commit
7f0e201880
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ Item {
|
|||
if (thumb.gestureInProgress) {
|
||||
return "partial";
|
||||
}
|
||||
if (thumb.partialActivationFactor > 0.5 && cell.isReady) {
|
||||
if (thumb.partialActivationFactor > 0.5 && (cell.isReady || activeHidden)) {
|
||||
return activeHidden ? "active-hidden" : `active-${substate}`;
|
||||
}
|
||||
return initialHidden ? "initial-hidden" : "initial";
|
||||
|
|
Loading…
Reference in a new issue