From 413138abe55b42eef82c04260ad99187f8979a91 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 1 Dec 2016 21:45:40 +0900 Subject: [PATCH] Delay movement of ParallaxContainers slightly. --- osu.Game/Graphics/Containers/ParallaxContainer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Game/Graphics/Containers/ParallaxContainer.cs b/osu.Game/Graphics/Containers/ParallaxContainer.cs index cf61529cd2..f1d3067137 100644 --- a/osu.Game/Graphics/Containers/ParallaxContainer.cs +++ b/osu.Game/Graphics/Containers/ParallaxContainer.cs @@ -4,6 +4,7 @@ using osu.Framework.Input; using OpenTK; using osu.Framework; using osu.Framework.Allocation; +using osu.Framework.Graphics.Transformations; namespace osu.Game.Graphics.Containers { @@ -38,7 +39,7 @@ namespace osu.Game.Graphics.Containers protected override void Update() { base.Update(); - content.Position = (ToLocalSpace(input.CurrentState.Mouse.NativeState.Position) - DrawSize / 2) * ParallaxAmount; + content.MoveTo((ToLocalSpace(input.CurrentState.Mouse.NativeState.Position) - DrawSize / 2) * ParallaxAmount, 1000, EasingTypes.OutQuint); content.Scale = new Vector2(1 + ParallaxAmount); } }