mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 16:32:55 +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:
commit
2c5b438589
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user