Merge pull request #2542 from peppy/overlays-dont-handle-dragstart

Stop focused overlays from handling DragStart
This commit is contained in:
Dan Balasescu 2018-05-14 17:58:10 +09:00 committed by GitHub
commit f0b7ed238c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)