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:
parent
18820e60b3
commit
bdfaa4b583
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user