From 8d95979846eb250c3079c280349bc5ff42283cef Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Tue, 18 Aug 2026 00:50:51 +0300 Subject: [PATCH 1/2] 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); } From fe6da846168ab13ca41986ed6b64fdbf55e573a5 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 15 Sep 2026 13:15:04 +0200 Subject: [PATCH 2/2] Tweak #4226 --- Source/Engine/UI/GUI/Tooltip.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Engine/UI/GUI/Tooltip.cs b/Source/Engine/UI/GUI/Tooltip.cs index 31429ec3c..1882045ba 100644 --- a/Source/Engine/UI/GUI/Tooltip.cs +++ b/Source/Engine/UI/GUI/Tooltip.cs @@ -242,8 +242,9 @@ namespace FlaxEngine.GUI if (_window) _window.Position = mousePos + TooltipOffset; } - - if (Input.Mouse.IsAnyButtonDown || Math.Abs(Input.Mouse.ScrollDelta) > Mathf.Epsilon) + + var mouse = Input.Mouse; + if (mouse.IsAnyButtonDown || Math.Abs(mouse.ScrollDelta) > Mathf.Epsilon) { // Hide popup when buttons are pressed Hide();