mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Fix editor seek transform seeking too much
This commit is contained in:
@ -266,8 +266,15 @@ namespace osu.Game.Screens.Edit
|
|||||||
{
|
{
|
||||||
public override string TargetMember => nameof(currentTime);
|
public override string TargetMember => nameof(currentTime);
|
||||||
|
|
||||||
protected override void Apply(EditorClock clock, double time) =>
|
protected override void Apply(EditorClock clock, double time) => clock.currentTime = valueAt(time);
|
||||||
clock.currentTime = Interpolation.ValueAt(time, StartValue, EndValue, StartTime, EndTime, Easing);
|
|
||||||
|
private double valueAt(double time)
|
||||||
|
{
|
||||||
|
if (time < StartTime) return StartValue;
|
||||||
|
if (time >= EndTime) return EndValue;
|
||||||
|
|
||||||
|
return Interpolation.ValueAt(time, StartValue, EndValue, StartTime, EndTime, Easing);
|
||||||
|
}
|
||||||
|
|
||||||
protected override void ReadIntoStartValue(EditorClock clock) => StartValue = clock.currentTime;
|
protected override void ReadIntoStartValue(EditorClock clock) => StartValue = clock.currentTime;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user