From 77569058cb415970e2fba96c3b174c3dbdcdfbae Mon Sep 17 00:00:00 2001 From: Joseph Madamba Date: Thu, 2 Feb 2023 23:45:54 -0800 Subject: [PATCH] Alternatively fix hover sounds playing out of clicking bounds --- .../Graphics/UserInterface/HoverSampleDebounceComponent.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game/Graphics/UserInterface/HoverSampleDebounceComponent.cs b/osu.Game/Graphics/UserInterface/HoverSampleDebounceComponent.cs index 53f1c06a67..959b0c6bd4 100644 --- a/osu.Game/Graphics/UserInterface/HoverSampleDebounceComponent.cs +++ b/osu.Game/Graphics/UserInterface/HoverSampleDebounceComponent.cs @@ -8,6 +8,7 @@ using osu.Framework.Bindables; using osu.Framework.Graphics.Containers; using osu.Framework.Input.Events; using osu.Game.Configuration; +using osuTK; namespace osu.Game.Graphics.UserInterface { @@ -18,6 +19,8 @@ namespace osu.Game.Graphics.UserInterface { private Bindable lastPlaybackTime; + public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => Parent?.ReceivePositionalInputAt(screenSpacePos) ?? false; + [BackgroundDependencyLoader] private void load(SessionStatics statics) {