1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Fix crash when dragging rotation control in editor with both mouse buttons

Closes https://github.com/ppy/osu/issues/26325.
This commit is contained in:
Dean Herbert 2024-01-03 13:34:49 +09:00
parent 18820e60b3
commit bdfaa4b583
No known key found for this signature in database

View File

@ -62,6 +62,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
protected override bool OnDragStart(DragStartEvent e) protected override bool OnDragStart(DragStartEvent e)
{ {
if (e.Button != MouseButton.Left)
return false;
if (rotationHandler == null) return false; if (rotationHandler == null) return false;
rotationHandler.Begin(); rotationHandler.Begin();