Avoid using input blocking

This commit is contained in:
Dean Herbert
2018-03-06 00:27:55 +09:00
parent 792a3ac469
commit d115c56742

View File

@ -35,8 +35,7 @@ namespace osu.Game.Screens.Play
private double displayTime; private double displayTime;
public override bool ReceiveMouseInputAt(Vector2 screenSpacePos) => true; public override bool ReceiveMouseInputAt(Vector2 screenSpacePos) => true;
protected override bool BlockPassThroughMouse => false;
protected override bool BlockPassThroughMouse => fadeContainer.IsHovered;
public SkipOverlay(double startTime) public SkipOverlay(double startTime)
{ {
@ -276,7 +275,7 @@ namespace osu.Game.Screens.Play
flow.TransformSpacingTo(new Vector2(5), 500, Easing.OutQuint); flow.TransformSpacingTo(new Vector2(5), 500, Easing.OutQuint);
box.FadeColour(colourHover, 500, Easing.OutQuint); box.FadeColour(colourHover, 500, Easing.OutQuint);
background.FadeTo(0.4f, 500, Easing.OutQuint); background.FadeTo(0.4f, 500, Easing.OutQuint);
return base.OnHover(state); return true;
} }
protected override void OnHoverLost(InputState state) protected override void OnHoverLost(InputState state)