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)) {