1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-31 16:32:55 +08:00

Fix settings in replay hiding when dragging a slider

This commit is contained in:
Rudi Herouard 2025-01-20 13:43:45 +01:00
parent c20b836d9c
commit 89586d5ab2

View File

@ -122,7 +122,10 @@ namespace osu.Game.Screens.Play.HUD
{
float screenMouseX = inputManager.CurrentState.Mouse.Position.X;
Expanded.Value = screenMouseX >= button.ScreenSpaceDrawQuad.TopLeft.X && screenMouseX <= ToScreenSpace(new Vector2(DrawWidth + EXPANDED_WIDTH, 0)).X;
Expanded.Value =
(screenMouseX >= button.ScreenSpaceDrawQuad.TopLeft.X && screenMouseX <= ToScreenSpace(new Vector2(DrawWidth + EXPANDED_WIDTH, 0)).X)
// Stay expanded if the user is dragging a slider.
|| inputManager.DraggedDrawable != null;
}
protected override void OnHoverLost(HoverLostEvent e)