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

Merge pull request #31593 from Rudicito/fix-player-settings-overlay-hiding-when-slider-drag

Fix player settings in replay hiding when dragging a slider
This commit is contained in:
Dan Balasescu 2025-01-21 13:49:39 +09:00 committed by GitHub
commit 2c5b438589
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)