Only accept drag movement on the overlays

This commit is contained in:
smoogipoo
2018-03-12 17:33:10 +09:00
parent 212142429f
commit 8c4bcb4a04
2 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,8 @@ namespace osu.Game.Rulesets.Edit.Layers.Selection
Position = topLeft;
}
public override bool ReceiveMouseInputAt(Vector2 screenSpacePos) => overlays.Any(o => o.ReceiveMouseInputAt(screenSpacePos));
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => true;
protected override bool OnDragStart(InputState state) => true;