Skip to content

Commit 253ddf6

Browse files
authored
Merge pull request #26353 from peppy/fix-editor-left-right-crash
Fix crash when dragging rotation control in editor with both mouse buttons
2 parents 18820e6 + bdfaa4b commit 253ddf6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

osu.Game/Screens/Edit/Compose/Components/SelectionBoxRotationHandle.cs

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ protected override void UpdateHoverState()
6262

6363
protected override bool OnDragStart(DragStartEvent e)
6464
{
65+
if (e.Button != MouseButton.Left)
66+
return false;
67+
6568
if (rotationHandler == null) return false;
6669

6770
rotationHandler.Begin();

0 commit comments

Comments
 (0)