修复Tooltip不触发的问题

This commit is contained in:
monitor1394
2021-05-18 09:29:03 +08:00
parent 01b77ccb55
commit 4de87fd358
5 changed files with 5 additions and 5 deletions

View File

@@ -322,7 +322,7 @@ namespace XCharts
{
drawRect.width = drawRect.width - 18;
EditorGUI.PropertyField(drawRect, element, new GUIContent("Element " + index));
drawRect.x = currentWidth - 45;
drawRect.x = currentWidth - 40;
EditorGUI.PropertyField(drawRect, selected, GUIContent.none);
drawRect.x = lastX;
drawRect.width = lastWid;

View File

@@ -79,7 +79,7 @@ namespace XCharts
public bool CheckTootipArea(Vector2 local)
{
if (chart.series.Contains(SerieType.Gauge)) return false;
if (!chart.series.Contains(SerieType.Gauge)) return false;
var serie = GetPointerInSerieIndex(chart.series, local);
if (serie != null)
{

View File

@@ -75,7 +75,7 @@ namespace XCharts
public bool CheckTootipArea(Vector2 local)
{
if (chart.series.Contains(SerieType.Pie)) return false;
if (!chart.series.Contains(SerieType.Pie)) return false;
bool selected = false;
chart.tooltip.runtimeDataIndex.Clear();
foreach (var serie in chart.series.list)

View File

@@ -119,7 +119,7 @@ namespace XCharts
public bool CheckTootipArea(Vector2 local)
{
if (chart.series.Contains(SerieType.Radar)) return false;
if (!chart.series.Contains(SerieType.Radar)) return false;
if (m_IsEnterLegendButtom) return false;
if (!IsInRadar(local)) return false;
bool highlight = false;

View File

@@ -127,7 +127,7 @@ namespace XCharts
public bool CheckTootipArea(Vector2 local)
{
if (chart.series.Contains(SerieType.Ring)) return false;
if (!chart.series.Contains(SerieType.Ring)) return false;
if (!PointerIsInRingSerie(chart.series, local)) return false;
if (m_IsEnterLegendButtom) return false;
bool selected = false;