1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 08:14:38 +01:00

Fix dropdown tooltips stuck open if mouse over empty space

This commit is contained in:
mix
2025-11-01 23:05:45 +00:00
committed by GitHub
parent 2dede486f2
commit bac6a9d460
2 changed files with 6 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
0.4.29 (in development)
------------------------------------------------------------------------
- Fix: [#25451] Dropdown item tooltips stay open if the mouse is moved over an empty space.
0.4.28 (2025-11-01)
------------------------------------------------------------------------

View File

@@ -1466,6 +1466,11 @@ namespace OpenRCT2
int32_t dropdown_index = DropdownIndexFromPoint(screenCoords, w);
if (dropdown_index == -1)
{
if (gDropdown.hasTooltips && gDropdown.lastTooltipHover != -1)
{
gDropdown.lastTooltipHover = -1;
WindowTooltipClose();
}
return;
}