1
This commit is contained in:
@@ -84,7 +84,18 @@ namespace BITKit.UX
|
||||
return "";
|
||||
}
|
||||
|
||||
var screenPosition = Mouse.current.position.ReadValue();
|
||||
var screenPosition = Vector2.zero;
|
||||
|
||||
if (Mouse.current is not null)
|
||||
{
|
||||
screenPosition= Mouse.current.position.ReadValue();
|
||||
}
|
||||
|
||||
if (Touchscreen.current is not null)
|
||||
{
|
||||
screenPosition = Touchscreen.current.position.ReadValue();
|
||||
}
|
||||
|
||||
screenPosition.y = Screen.height - screenPosition.y;
|
||||
|
||||
VisualElement ve = panel.Pick(RuntimePanelUtils.ScreenToPanel(panel, screenPosition));
|
||||
|
Reference in New Issue
Block a user