mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 05:22:54 +08:00
Stop overlays from handling DragStart
This was causing weird behaviour with the key configuration section and back button in settings.
This commit is contained in:
parent
1045199a17
commit
fe1c1fec0d
@ -44,19 +44,6 @@ namespace osu.Game.Graphics.Containers
|
||||
return base.OnClick(state);
|
||||
}
|
||||
|
||||
protected override bool OnDragStart(InputState state)
|
||||
{
|
||||
if (!base.ReceiveMouseInputAt(state.Mouse.NativeState.Position))
|
||||
{
|
||||
State = Visibility.Hidden;
|
||||
return true;
|
||||
}
|
||||
|
||||
return base.OnDragStart(state);
|
||||
}
|
||||
|
||||
protected override bool OnDrag(InputState state) => State == Visibility.Hidden;
|
||||
|
||||
private void onStateChanged(Visibility visibility)
|
||||
{
|
||||
switch (visibility)
|
||||
|
Loading…
Reference in New Issue
Block a user