From bf55dd1294e23e519bcb6f6037ddee5f15aa6bb3 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sun, 26 Jul 2020 08:56:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=98=E7=BA=BF=E5=9B=BE?= =?UTF-8?q?=E5=9C=A8=E5=BC=80=E5=90=AF=E5=8A=A8=E7=94=BB=E6=97=B6=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E4=B8=8D=E7=BB=98=E5=88=B6=E7=BA=BF=E6=9D=A1=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Internal/CoordinateChart_DrawLine.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Internal/CoordinateChart_DrawLine.cs b/Runtime/Internal/CoordinateChart_DrawLine.cs index 5f20669a..9d4b8bfe 100644 --- a/Runtime/Internal/CoordinateChart_DrawLine.cs +++ b/Runtime/Internal/CoordinateChart_DrawLine.cs @@ -275,7 +275,7 @@ namespace XCharts } if (!serie.animation.IsFinish()) { - serie.animation.CheckProgress(totalDetailProgress); + serie.animation.CheckProgress(totalDetailProgress - currDetailProgress); serie.animation.CheckSymbol(serie.symbol.size); m_IsPlayingAnimation = true; RefreshChart(); @@ -631,7 +631,7 @@ namespace XCharts } if (!serie.animation.IsFinish()) { - float total = totalDetailProgress - dataCount * serie.lineStyle.width * 0.5f; + float total = totalDetailProgress - currDetailProgress - dataCount * serie.lineStyle.width * 0.5f; serie.animation.CheckProgress(total); serie.animation.CheckSymbol(serie.symbol.size); m_IsPlayingAnimation = true;