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

Merge pull request #26353 from peppy/fix-editor-left-right-crash

Fix crash when dragging rotation control in editor with both mouse buttons
This commit is contained in:
Bartłomiej Dach 2024-01-03 08:55:34 +01:00 committed by GitHub
commit 253ddf6637
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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