MinecraftConsoles/Minecraft.Client/Common
MrTheShy 9432005056 Fix mouse hover selecting wrong buttons from the third onward
The hover code was doing a redundant second hit-test against Iggy
focusable object bounds after the C++ control bounds had already
identified the correct control. Iggy focusable bounds are wider than
the actual visible buttons and overlap vertically, so the "pick
largest x0" heuristic would match focusables belonging to earlier
buttons when hovering the right side of buttons 3+.

Replaced the IggyPlayerGetFocusableObjects path with a direct
SetFocusToElement call using the already-correct hitControlId from
the C++ hit-test, same approach the click path uses in
handleMouseClick. Also switched the overlap tiebreaker from "largest
x0" to smallest area, consistent with how clicks resolve overlapping
controls. TextInput is excluded from hover focus to avoid showing
the caret on mere mouse-over (its Iggy focus is set on click).
2026-03-06 05:23:52 +01:00
..
Audio Remove AUTO_VAR macro and _toString function (#592) 2026-03-06 02:11:18 +07:00
Colours Remove AUTO_VAR macro and _toString function (#592) 2026-03-06 02:11:18 +07:00
DLC Remove AUTO_VAR macro and _toString function (#592) 2026-03-06 02:11:18 +07:00
DummyTexturePack/res Initial commit 2026-03-01 12:16:08 +08:00
GameRules Remove AUTO_VAR macro and _toString function (#592) 2026-03-06 02:11:18 +07:00
Leaderboards feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
Media Fix DLCs textures and update logo in 720p (#517) 2026-03-05 15:12:50 +07:00
Network Trim newline characters from IP address (#600) 2026-03-05 14:27:08 -06:00
res feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
Telemetry Initial commit 2026-03-01 12:16:08 +08:00
Trial Initial commit 2026-03-01 12:16:08 +08:00
Tutorial Remove AUTO_VAR macro and _toString function (#592) 2026-03-06 02:11:18 +07:00
UI Fix mouse hover selecting wrong buttons from the third onward 2026-03-06 05:23:52 +01:00
XUI Remove AUTO_VAR macro and _toString function (#592) 2026-03-06 02:11:18 +07:00
zlib Revert "Get rid of MSVC's __int64" 2026-03-02 17:39:35 +07:00
App_Defines.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
App_enums.h shift + click for quickmove (#278) 2026-03-03 23:27:23 +07:00
App_structs.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
BuildVer.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
C4JMemoryPool.h Initial commit 2026-03-01 12:16:08 +08:00
C4JMemoryPoolAllocator.h Initial commit 2026-03-01 12:16:08 +08:00
CommonMedia.sln Initial commit 2026-03-01 12:16:08 +08:00
CommonMedia.vcxproj Initial commit 2026-03-01 12:16:08 +08:00
CommonMedia.vcxproj.filters Initial commit 2026-03-01 12:16:08 +08:00
Console_Awards_enum.h Initial commit 2026-03-01 12:16:08 +08:00
Console_Debug_enum.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
Console_Utils.cpp Initial commit 2026-03-01 12:16:08 +08:00
ConsoleGameMode.cpp Optimize Path for Tutorial.h in ConsoleGameMode.cpp 2026-03-01 15:05:24 -07:00
ConsoleGameMode.h Optimize TutorialMode.h Filepath in ConsoleGameMode.h 2026-03-01 15:06:42 -07:00
Consoles_App.cpp Fix gamma slider via pixel shader #178 (#481) 2026-03-06 02:41:17 +07:00
Consoles_App.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
Minecraft_Macros.h Initial commit 2026-03-01 12:16:08 +08:00
PostProcesser.h Fix gamma slider via pixel shader #178 (#481) 2026-03-06 02:41:17 +07:00
Potion_Macros.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
xuiscene_base.h Initial commit 2026-03-01 12:16:08 +08:00