Revert "Merge pull request #16716 from peppy/carousel-less-invalidations"

This reverts commit 8d13e0514b, reversing
changes made to 95582a9023.
This commit is contained in:
Dean Herbert
2022-02-05 16:12:58 +09:00
parent fd81842ade
commit eb25730b61
5 changed files with 54 additions and 68 deletions

View File

@ -925,8 +925,10 @@ namespace osu.Game.Screens.Select
// child items (difficulties) are still visible.
item.Header.X = offsetX(dist, visibleHalfHeight) - (parent?.X ?? 0);
// We are applying alpha to the header here such that we can layer alpha transformations on top.
item.Header.Alpha = Math.Clamp(1.75f - 1.5f * dist, 0, 1);
// We are applying a multiplicative alpha (which is internally done by nesting an
// additional container and setting that container's alpha) such that we can
// layer alpha transformations on top.
item.SetMultiplicativeAlpha(Math.Clamp(1.75f - 1.5f * dist, 0, 1));
}
private enum PendingScrollOperation