[optimize][serie] optimize index of serieData

This commit is contained in:
monitor1394
2022-08-08 07:43:19 +08:00
parent e7f19e72a5
commit 19914586ae
7 changed files with 64 additions and 7 deletions

View File

@@ -57,6 +57,7 @@ namespace XCharts.Runtime
m_LastCheckContextFlag = needCheck;
var themeSymbolSize = chart.theme.serie.lineSymbolSize;
var needInteract = false;
serie.ResetDataIndex();
if (m_LegendEnter)
{
serie.context.pointerEnter = true;
@@ -112,7 +113,9 @@ namespace XCharts.Runtime
}
}
if (lastIndex != serie.context.pointerItemDataIndex)
{
needInteract = true;
}
}
if (needInteract)
{