mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 17:02:55 +08:00
Add an explanatory comment for weird override
This commit is contained in:
parent
788bfde002
commit
d453c2589a
@ -63,7 +63,10 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
||||
|
||||
#region User Input Handling
|
||||
|
||||
// Only handle input on selectable or selected masks
|
||||
/// <summary>
|
||||
/// Handle input on currently selectable or already selected masks.
|
||||
/// Keep in mind that selectedMasks may contain masks for non-current objects, which we still want to handle input while selected.
|
||||
/// </summary>
|
||||
public override bool ReceiveMouseInputAt(Vector2 screenSpacePos) => selectableMasks.Reverse().Concat(selectedMasks).Any(m => m.ReceiveMouseInputAt(screenSpacePos));
|
||||
|
||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
||||
|
Loading…
Reference in New Issue
Block a user