1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 12:53:11 +08:00

Alternatively fix hover sounds playing out of clicking bounds

This commit is contained in:
Joseph Madamba 2023-02-02 23:45:54 -08:00
parent 6135db6bd7
commit 77569058cb

View File

@ -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<double?> lastPlaybackTime;
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => Parent?.ReceivePositionalInputAt(screenSpacePos) ?? false;
[BackgroundDependencyLoader]
private void load(SessionStatics statics)
{