mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Remove no longer necessary horizontal scroll blocker
This commit is contained in:
@ -85,7 +85,6 @@ namespace osu.Game.Screens.Ranking
|
|||||||
InternalChild = scroll = new Scroll
|
InternalChild = scroll = new Scroll
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
HandleScroll = () => expandedPanel?.IsHovered != true, // handle horizontal scroll only when not hovering the expanded panel.
|
|
||||||
Child = flow = new Flow
|
Child = flow = new Flow
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
@ -359,11 +358,6 @@ namespace osu.Game.Screens.Ranking
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public float? InstantScrollTarget;
|
public float? InstantScrollTarget;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Whether this container should handle scroll trigger events.
|
|
||||||
/// </summary>
|
|
||||||
public Func<bool> HandleScroll;
|
|
||||||
|
|
||||||
protected override void UpdateAfterChildren()
|
protected override void UpdateAfterChildren()
|
||||||
{
|
{
|
||||||
if (InstantScrollTarget != null)
|
if (InstantScrollTarget != null)
|
||||||
@ -374,10 +368,6 @@ namespace osu.Game.Screens.Ranking
|
|||||||
|
|
||||||
base.UpdateAfterChildren();
|
base.UpdateAfterChildren();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HandlePositionalInput => HandleScroll();
|
|
||||||
|
|
||||||
public override bool HandleNonPositionalInput => HandleScroll();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user