Tooltip显示优化

This commit is contained in:
monitor1394
2019-06-03 23:15:23 +08:00
parent d23a7cb239
commit 949f6d02aa
4 changed files with 12 additions and 9 deletions

View File

@@ -70,8 +70,8 @@ namespace XCharts
protected override void CheckTootipArea(Vector2 local)
{
if (local.x < zeroX || local.x > zeroX + coordinateWid ||
local.y < zeroY || local.y > zeroY + coordinateHig)
if (local.x < coordinateX || local.x > coordinateX + coordinateWid ||
local.y < coordinateY || local.y > coordinateY + coordinateHig)
{
m_Tooltip.dataIndex = 0;
RefreshTooltip();