修复Tooltip在鼠标移出图表外可能绘制异常的问题

This commit is contained in:
monitor1394
2019-09-20 08:55:52 +08:00
parent 73ad4bb7cc
commit 8fad3b0f71
4 changed files with 26 additions and 10 deletions

View File

@@ -162,9 +162,10 @@ namespace XCharts
RefreshChart();
}
}
else
else if (m_Tooltip.IsActive())
{
m_Tooltip.SetActive(false);
RefreshChart();
}
}
@@ -192,7 +193,11 @@ namespace XCharts
}
if (index < 0)
{
m_Tooltip.SetActive(false);
if (m_Tooltip.IsActive())
{
m_Tooltip.SetActive(false);
RefreshChart();
}
return;
}