1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 12:22:57 +08:00

Fix score panels sometimes jumping when toggling statistics fast

This commit is contained in:
Joseph Madamba 2021-11-17 23:15:51 -08:00
parent 698b6c4242
commit a09589f833

View File

@ -311,10 +311,10 @@ namespace osu.Game.Screens.Ranking
ScorePanelList.Attach(detachedPanel); ScorePanelList.Attach(detachedPanel);
// Move into its original location in the attached container first, then to the final location. // Move into its original location in the attached container first, then to the final location.
var origLocation = detachedPanel.Parent.ToLocalSpace(screenSpacePos); float origLocation = detachedPanel.Parent.ToLocalSpace(screenSpacePos).X;
detachedPanel.MoveTo(origLocation) detachedPanel.MoveToX(origLocation)
.Then() .Then()
.MoveTo(new Vector2(0, origLocation.Y), 150, Easing.OutQuint); .MoveToX(0, 150, Easing.OutQuint);
// Show contracted panels. // Show contracted panels.
foreach (var contracted in ScorePanelList.GetScorePanels().Where(p => p.State == PanelState.Contracted)) foreach (var contracted in ScorePanelList.GetScorePanels().Where(p => p.State == PanelState.Contracted))