From 9dd98e0e4af60924f909c53d54f15a4f30a5555a Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 25 Jul 2025 17:43:48 +0900 Subject: [PATCH] Fix back-to-top button handling input outside itself Closes https://github.com/ppy/osu/issues/34382. I'm aware that the animation now affects hit area. I think it's fine. --- osu.Game/Overlays/OverlayScrollContainer.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game/Overlays/OverlayScrollContainer.cs b/osu.Game/Overlays/OverlayScrollContainer.cs index 66a8686a88..957008d823 100644 --- a/osu.Game/Overlays/OverlayScrollContainer.cs +++ b/osu.Game/Overlays/OverlayScrollContainer.cs @@ -119,10 +119,13 @@ namespace osu.Game.Overlays private Sample scrollToTopSample; private Sample scrollToPreviousSample; + public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => content.ReceivePositionalInputAt(screenSpacePos); + public ScrollBackButton() { Size = new Vector2(50); Alpha = 0; + Add(content = new CircularContainer { RelativeSizeAxes = Axes.Both,