1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:57:52 +08:00

Fix drag mishaps

This commit is contained in:
Dean Herbert 2018-04-04 19:42:59 +09:00
parent bce114a37b
commit 31a7db0a35

View File

@ -63,8 +63,6 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
#region User Input Handling
public override bool ReceiveMouseInputAt(Vector2 screenSpacePos) => true;
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => handleInput(state);
protected override bool OnDragStart(InputState state) => handleInput(state);
@ -73,7 +71,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Layers
private bool handleInput(InputState state)
{
if (!selectedMasks.Any(m => m.ReceiveMouseInputAt(state.Mouse.NativeState.Position)))
if (!selectedMasks.Any(m => m.ReceiveMouseInputAt(state.Mouse.NativeState.PositionMouseDown ?? state.Mouse.NativeState.Position)))
return false;
UpdateVisibility();