mirror of
https://github.com/ppy/osu
synced 2024-12-16 20:05:41 +00:00
Add some comments
This commit is contained in:
parent
69a7ddbf1e
commit
f1f7d978ec
@ -68,6 +68,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
|||||||
|
|
||||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
||||||
{
|
{
|
||||||
|
// If masks are overlapping, make sure we don't change the selection if the overlapped portion is pressed
|
||||||
if (selectedMasks.Any(m => m.ReceiveMouseInputAt(state.Mouse.NativeState.Position)))
|
if (selectedMasks.Any(m => m.ReceiveMouseInputAt(state.Mouse.NativeState.Position)))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@ -80,6 +81,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
|
|||||||
|
|
||||||
protected override bool OnClick(InputState state)
|
protected override bool OnClick(InputState state)
|
||||||
{
|
{
|
||||||
|
// If there's only mask, this isn't going to change anything, so we can save on doing some processing here
|
||||||
if (selectedMasks.Count == 1)
|
if (selectedMasks.Count == 1)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user