修复WdbGL平台上Tooltip不显示的问题

This commit is contained in:
monitor1394
2021-07-19 08:23:39 +08:00
parent 31f653e3e0
commit f452905f7a
3 changed files with 3 additions and 1 deletions

View File

@@ -166,7 +166,7 @@ namespace XCharts
public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint)
{
#if ! UNITY_EDITOR
#if UNITY_STANDALONE
screenPoint = Display.RelativeMouseAt(screenPoint);
#endif
var cam = canvas.renderMode == RenderMode.ScreenSpaceOverlay ? null : canvas.worldCamera;