diff --git a/Runtime/Component/Animation/AnimationStyle.cs b/Runtime/Component/Animation/AnimationStyle.cs index 367f880c..6eb71216 100644 --- a/Runtime/Component/Animation/AnimationStyle.cs +++ b/Runtime/Component/Animation/AnimationStyle.cs @@ -275,8 +275,6 @@ namespace XCharts.Runtime { if (m_IsInit || m_IsEnd) return; - if (curr > dest) - return; m_IsInit = true; m_TotalDetailProgress = dest - curr; diff --git a/Runtime/Internal/BaseChart.API.cs b/Runtime/Internal/BaseChart.API.cs index 5a3330ee..84847cca 100644 --- a/Runtime/Internal/BaseChart.API.cs +++ b/Runtime/Internal/BaseChart.API.cs @@ -360,8 +360,10 @@ namespace XCharts.Runtime /// fadeIn animation. /// |开始渐入动画。 /// - public void AnimationFadeIn() + public void AnimationFadeIn(bool reset = true) { + if (reset) + AnimationReset(); foreach (var serie in m_Series) serie.AnimationFadeIn(); }