1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:47:29 +08:00

Update existing overlay containers to not block scroll input

This commit is contained in:
Dean Herbert 2021-04-12 16:41:36 +09:00
parent 995c244cee
commit 0eab9daf13
4 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,8 @@ namespace osu.Game.Graphics.Containers
protected virtual string PopInSampleName => "UI/overlay-pop-in";
protected virtual string PopOutSampleName => "UI/overlay-pop-out";
protected override bool BlockScrollInput => false;
protected override bool BlockNonPositionalInput => true;
/// <summary>

View File

@ -19,6 +19,8 @@ namespace osu.Game.Screens.OnlinePlay.Match.Components
protected OnlinePlayComposite Settings { get; set; }
protected override bool BlockScrollInput => false;
[BackgroundDependencyLoader]
private void load()
{

View File

@ -31,6 +31,8 @@ namespace osu.Game.Screens.Play
protected override bool BlockNonPositionalInput => true;
protected override bool BlockScrollInput => false;
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => true;
public Action OnRetry;

View File

@ -45,6 +45,8 @@ namespace osu.Game.Screens.Play
public override bool HandleNonPositionalInput => AllowSeeking.Value;
public override bool HandlePositionalInput => AllowSeeking.Value;
protected override bool BlockScrollInput => false;
private double firstHitTime => objects.First().StartTime;
private IEnumerable<HitObject> objects;