mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 23:59:16 +08:00
Fix rotation handle visibility logic not handling two handles hovered at once
This commit is contained in:
parent
80e231d90a
commit
96d3586294
@ -84,8 +84,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
if (activeHandle?.IsHeld == true)
|
if (activeHandle?.IsHeld == true)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
activeHandle = rotationHandles.SingleOrDefault(h => h.IsHeld || h.IsHovered);
|
activeHandle = rotationHandles.FirstOrDefault(h => h.IsHeld || h.IsHovered);
|
||||||
activeHandle ??= allDragHandles.SingleOrDefault(h => h.IsHovered);
|
activeHandle ??= allDragHandles.FirstOrDefault(h => h.IsHovered);
|
||||||
|
|
||||||
if (activeHandle != null)
|
if (activeHandle != null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user