mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 18:52:55 +08:00
Fix slider tracking state being set to false
after slider end
This commit is contained in:
parent
3a124a99ce
commit
0086759395
@ -132,6 +132,9 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
|
if (Time.Current >= drawableSlider.HitObject.EndTime)
|
||||||
|
return;
|
||||||
|
|
||||||
// from the point at which the head circle is hit, this will be non-null.
|
// from the point at which the head circle is hit, this will be non-null.
|
||||||
// it may be null if the head circle was missed.
|
// it may be null if the head circle was missed.
|
||||||
var headCircleHitAction = GetInitialHitAction();
|
var headCircleHitAction = GetInitialHitAction();
|
||||||
@ -153,9 +156,9 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
|
|
||||||
Tracking =
|
Tracking =
|
||||||
// in valid time range
|
// in valid time range
|
||||||
Time.Current >= drawableSlider.HitObject.StartTime && Time.Current < drawableSlider.HitObject.EndTime &&
|
Time.Current >= drawableSlider.HitObject.StartTime
|
||||||
// in valid position range
|
// in valid position range
|
||||||
lastScreenSpaceMousePosition.HasValue && followCircleReceptor.ReceivePositionalInputAt(lastScreenSpaceMousePosition.Value) &&
|
&& lastScreenSpaceMousePosition.HasValue && followCircleReceptor.ReceivePositionalInputAt(lastScreenSpaceMousePosition.Value) &&
|
||||||
// valid action
|
// valid action
|
||||||
(actions?.Any(isValidTrackingAction) ?? false);
|
(actions?.Any(isValidTrackingAction) ?? false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user