mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:33:20 +08:00
Fix score panels sometimes jumping when toggling statistics fast
This commit is contained in:
parent
698b6c4242
commit
a09589f833
@ -311,10 +311,10 @@ namespace osu.Game.Screens.Ranking
|
||||
ScorePanelList.Attach(detachedPanel);
|
||||
|
||||
// Move into its original location in the attached container first, then to the final location.
|
||||
var origLocation = detachedPanel.Parent.ToLocalSpace(screenSpacePos);
|
||||
detachedPanel.MoveTo(origLocation)
|
||||
float origLocation = detachedPanel.Parent.ToLocalSpace(screenSpacePos).X;
|
||||
detachedPanel.MoveToX(origLocation)
|
||||
.Then()
|
||||
.MoveTo(new Vector2(0, origLocation.Y), 150, Easing.OutQuint);
|
||||
.MoveToX(0, 150, Easing.OutQuint);
|
||||
|
||||
// Show contracted panels.
|
||||
foreach (var contracted in ScorePanelList.GetScorePanels().Where(p => p.State == PanelState.Contracted))
|
||||
|
Loading…
Reference in New Issue
Block a user