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:
parent
698b6c4242
commit
a09589f833
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user