From 8d95979846eb250c3079c280349bc5ff42283cef Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Tue, 18 Aug 2026 00:50:51 +0300 Subject: [PATCH] Hide tooltips when mouse buttons are pressed --- Source/Engine/UI/GUI/Tooltip.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Engine/UI/GUI/Tooltip.cs b/Source/Engine/UI/GUI/Tooltip.cs index ea3c27658..31429ec3c 100644 --- a/Source/Engine/UI/GUI/Tooltip.cs +++ b/Source/Engine/UI/GUI/Tooltip.cs @@ -242,6 +242,12 @@ namespace FlaxEngine.GUI if (_window) _window.Position = mousePos + TooltipOffset; } + + if (Input.Mouse.IsAnyButtonDown || Math.Abs(Input.Mouse.ScrollDelta) > Mathf.Epsilon) + { + // Hide popup when buttons are pressed + Hide(); + } base.Update(deltaTime); }