[bug] fix fadeout animation

This commit is contained in:
monitor1394
2022-06-20 08:24:00 +08:00
parent 431cf7de74
commit df0a87c935
2 changed files with 6 additions and 3 deletions

View File

@@ -350,9 +350,11 @@ namespace XCharts.Runtime
#endif
if (!m_Enable || m_IsEnd)
return true;
if (IsIndexAnimation())
return m_CurrDetailProgress > m_DestDetailProgress;
{
if (m_FadeOut) return m_CurrDetailProgress <= m_DestDetailProgress;
else return m_CurrDetailProgress > m_DestDetailProgress;
}
if (IsItemAnimation())
return false;
return true;