1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 15:50:29 +08:00

Fix sliders not being selectable if the body is hidden but the head is still visible

Closes https://github.com/ppy/osu/issues/31998.

Previously: https://github.com/ppy/osu/commit/1648f2efa306f587714178f113e69d8ad8c4ac02,
https://github.com/ppy/osu/pull/31923.

Oh input handling, how I love ya.
This commit is contained in:
Bartłomiej Dach
2025-02-27 14:57:42 +01:00
Unverified
parent 79b737bc27
commit 5b318edbfb
@@ -626,7 +626,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos)
{
if (BodyPiece.ReceivePositionalInputAt(screenSpacePos) && (IsSelected || DrawableObject.Body.Alpha > 0))
if (BodyPiece.ReceivePositionalInputAt(screenSpacePos) && (IsSelected || DrawableObject.Body.Alpha > 0 || DrawableObject.HeadCircle.Alpha > 0))
return true;
if (ControlPointVisualiser == null)