1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 10:03:05 +08:00

Also don't rotate images during a drag operation

This commit is contained in:
Dean Herbert 2024-03-26 20:21:48 +08:00
parent 9474156df4
commit fd649edaba
No known key found for this signature in database

View File

@ -120,8 +120,8 @@ namespace osu.Game.Screens.Menu
{
nextDisplay?.Cancel();
// If the user is hovering a banner, don't rotate yet.
bool anyHovered = content.Any(i => i.IsHovered);
// If the user is interacting with a banner, don't rotate yet.
bool anyHovered = content.Any(i => i.IsHovered || i.IsDragged);
if (!anyHovered)
{
@ -242,6 +242,8 @@ namespace osu.Game.Screens.Menu
.ScaleTo(1, 500, Easing.OutElastic);
base.OnMouseUp(e);
}
protected override bool OnDragStart(DragStartEvent e) => true;
}
}
}