mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:07:25 +08:00
Fix drag mishaps
This commit is contained in:
parent
bce114a37b
commit
31a7db0a35
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user