Fix flashlight not dimming if slider head is hit early

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

Fix is a bit nuclear (`OnUpdate` should be considered last resort),
but I don't see many better alternatives here as
`ApplyCustomUpdateState` does not work...
This commit is contained in:
Bartłomiej Dach 2024-01-16 18:47:00 +01:00
parent e9e5a0b08c
commit d0e9402761
No known key found for this signature in database

View File

@ -50,7 +50,7 @@ namespace osu.Game.Rulesets.Osu.Mods
public void ApplyToDrawableHitObject(DrawableHitObject drawable)
{
if (drawable is DrawableSlider s)
s.Tracking.ValueChanged += _ => flashlight.OnSliderTrackingChange(s);
s.OnUpdate += _ => flashlight.OnSliderTrackingChange(s);
}
private partial class OsuFlashlight : Flashlight, IRequireHighFrequencyMousePosition