From cb89daad36ef4c950d11a21696ea8c32f5361f0e Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Sun, 24 Sep 2023 15:15:53 -0500 Subject: [PATCH] Clean up comments. --- Source/Engine/UI/GUI/Tooltip.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Engine/UI/GUI/Tooltip.cs b/Source/Engine/UI/GUI/Tooltip.cs index 6ab40c6aa..d4825b7ca 100644 --- a/Source/Engine/UI/GUI/Tooltip.cs +++ b/Source/Engine/UI/GUI/Tooltip.cs @@ -196,7 +196,6 @@ namespace FlaxEngine.GUI /// public override void Update(float deltaTime) { - // Auto hide if mouse leaves control area var mousePos = Input.MouseScreenPosition; // Calculate popup direction @@ -219,8 +218,10 @@ namespace FlaxEngine.GUI locationSS.X -= dpiSize.X + 20; } + // Move window with mouse location _window.Position = locationSS + new Float2(15, 10); + // Auto hide if mouse leaves control area var location = _showTarget.PointFromScreen(mousePos); if (!_showTarget.OnTestTooltipOverControl(ref location)) {