1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-22 03:43:01 +08:00

Merge if branches

This commit is contained in:
Salman Ahmed 2024-08-22 05:40:43 +09:00
parent fc02b4b942
commit 1efa6b7221

View File

@ -227,9 +227,10 @@ namespace osu.Game.Overlays.Mods
{
base.Update();
if (ExpandedState.Value == ModCustomisationPanelState.ExpandedByHover)
if (ExpandedState.Value == ModCustomisationPanelState.ExpandedByHover
&& !ReceivePositionalInputAt(inputManager.CurrentState.Mouse.Position)
&& inputManager.DraggedDrawable == null)
{
if (!ReceivePositionalInputAt(inputManager.CurrentState.Mouse.Position) && inputManager.DraggedDrawable == null)
ExpandedState.Value = ModCustomisationPanelState.Collapsed;
}
}