mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-17 14:00:12 +00:00
Tooltip显示优化
This commit is contained in:
@@ -6,6 +6,12 @@ using UnityEngine.EventSystems;
|
||||
|
||||
namespace XCharts
|
||||
{
|
||||
public enum Orient
|
||||
{
|
||||
Horizonal,
|
||||
Vertical
|
||||
}
|
||||
|
||||
public class BaseChart : MaskableGraphic
|
||||
{
|
||||
private static readonly string s_TitleObjectName = "title";
|
||||
@@ -331,12 +337,14 @@ namespace XCharts
|
||||
Input.mousePosition, null, out local))
|
||||
{
|
||||
m_Tooltip.SetActive(false);
|
||||
RefreshChart();
|
||||
return;
|
||||
}
|
||||
if (local.x < 0 || local.x > chartWidth ||
|
||||
local.y < 0 || local.y > chartHeight)
|
||||
{
|
||||
m_Tooltip.SetActive(false);
|
||||
RefreshChart();
|
||||
return;
|
||||
}
|
||||
m_Tooltip.pointerPos = local;
|
||||
|
||||
Reference in New Issue
Block a user