Fix being able to click through slider tail drag handles

Closes https://github.com/ppy/osu/issues/31176.
This commit is contained in:
Dean Herbert 2024-12-19 00:01:36 +09:00
parent d54238240a
commit c68dc11412
No known key found for this signature in database

View File

@ -76,6 +76,10 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
base.OnDragEnd(e);
}
protected override bool OnMouseDown(MouseDownEvent e) => true;
protected override bool OnClick(ClickEvent e) => true;
private void updateState()
{
Colour = IsHovered || IsDragged ? colours.Red : colours.Yellow;