mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-18 14:30:10 +00:00
修复Tooltip不触发的问题
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user