Adjust OnHover syntax

This commit is contained in:
Andrei Zavatski
2020-03-09 19:22:03 +03:00
parent b77bd08925
commit bea2b70948

View File

@ -46,13 +46,15 @@ namespace osu.Game.Overlays.Profile
protected override bool OnHover(HoverEvent e) protected override bool OnHover(HoverEvent e)
{ {
if (data.Length <= 1) if (data.Length > 1)
return base.OnHover(e); {
graph.UpdateBallPosition(e.MousePosition.X);
graph.ShowBar();
graph.UpdateBallPosition(e.MousePosition.X); return true;
graph.ShowBar(); }
return true; return base.OnHover(e);
} }
protected override bool OnMouseMove(MouseMoveEvent e) protected override bool OnMouseMove(MouseMoveEvent e)