mirror of
https://github.com/ppy/osu
synced 2025-01-05 21:59:46 +00:00
Adjust OnHover syntax
This commit is contained in:
parent
b77bd08925
commit
bea2b70948
@ -46,13 +46,15 @@ namespace osu.Game.Overlays.Profile
|
||||
|
||||
protected override bool OnHover(HoverEvent e)
|
||||
{
|
||||
if (data.Length <= 1)
|
||||
return base.OnHover(e);
|
||||
if (data.Length > 1)
|
||||
{
|
||||
graph.UpdateBallPosition(e.MousePosition.X);
|
||||
graph.ShowBar();
|
||||
|
||||
graph.UpdateBallPosition(e.MousePosition.X);
|
||||
graph.ShowBar();
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
return base.OnHover(e);
|
||||
}
|
||||
|
||||
protected override bool OnMouseMove(MouseMoveEvent e)
|
||||
|
Loading…
Reference in New Issue
Block a user