mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08:00
Fix 1-frame position discrepancy
This commit is contained in:
parent
934b687965
commit
7809ce9361
@ -40,6 +40,14 @@ namespace osu.Game.Rulesets.Edit
|
||||
HitObject.ApplyDefaults(workingBeatmap.Value.Beatmap.ControlPointInfo, workingBeatmap.Value.Beatmap.BeatmapInfo.BaseDifficulty);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
// Fixes a 1-frame position discrpancy due to the first mouse move event happening in the next frame
|
||||
Position = GetContainingInputManager().CurrentState.Mouse.Position;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finishes the placement of <see cref="HitObject"/>.
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user