작업 조건 분석 UI 상세 정보 패널 기능 수정
This commit is contained in:
@@ -49,11 +49,9 @@ public class UI_GraphChart : UIBase, IPointerClickHandler
|
||||
{
|
||||
if (RectTransformUtility.RectangleContainsScreenPoint(chartDetailData.rectTransform, Input.mousePosition))
|
||||
{
|
||||
Debug.Log("¹þ¾î³²");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
chartDetailData.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,9 +63,7 @@ public class UI_GraphChartData : UIBase, ISingle
|
||||
Vector2 localPoint;
|
||||
RectTransformUtility.ScreenPointToLocalPointInRectangle(parentRectTransform, Input.mousePosition, null, out localPoint);
|
||||
|
||||
float clampedX = Mathf.Clamp(topPosition.x + offset.x, -parentSize.x / 2 + uiSize.x / 2, parentSize.x / 2 - uiSize.x / 2);
|
||||
|
||||
rectTransform.localPosition = new Vector2(clampedX, localPoint.y + offset.y);
|
||||
rectTransform.localPosition = new Vector2(localPoint.x + offset.x, localPoint.y + offset.y);
|
||||
gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user