Skip to content

Commit

Permalink
Fix editor UI dimming when hovering over expanded part of toolboxes
Browse files Browse the repository at this point in the history
Closes ppy#28969.
  • Loading branch information
bdach committed Jul 22, 2024
1 parent dd8be62 commit 57fa502
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion osu.Game/Rulesets/Edit/HitObjectComposer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ protected override void Update()
PlayfieldContentContainer.X = TOOLBOX_CONTRACTED_SIZE_LEFT;
}

composerFocusMode.Value = PlayfieldContentContainer.Contains(InputManager.CurrentState.Mouse.Position);
composerFocusMode.Value = PlayfieldContentContainer.Contains(InputManager.CurrentState.Mouse.Position)
&& !LeftToolbox.Contains(InputManager.CurrentState.Mouse.Position)
&& !RightToolbox.Contains(InputManager.CurrentState.Mouse.Position);
}

public override Playfield Playfield => drawableRulesetWrapper.Playfield;
Expand Down

0 comments on commit 57fa502

Please sign in to comment.