mojira.dev
MC-257468

Tabbed tooltip sticks to the mouse

In 22w45a, tooltips now appear when tabbing to GUI elements, which is a great UI improvement. However, they seem to interact with the mouse in a way that is not immediately obvious to users.

Tooltips will always stick to the mouse when a GUI element is hovered or focused. This means that the tooltip for one element can appear over another element. If there is no mouse within the window or at all, the tooltip will not appear.

Ideally, tooltips will stick to the mouse when hovered (since hovering implies that the mouse and thus tooltip is within the element's bounds) or a fixed point when focused. For reference, in addition to a vanilla screenshot, this issue includes a screenshot of how the 'Mod Menu' mod was negatively impacted by following the new vanilla behavior.

Linked issues

Attachments

Comments 7

Duplicate of MC-187744, which is just more widespread than just the pack menus.

I suppose Mojang made this bug more inconsistent with a tooltip refactor. If this is marked as a duplicate, that report should be updated to generalize to all tooltips and include the tooltip not being visible when the mouse is not present.

Your screenshots feature a menu that's not in the vanilla game. How does this issue surface with just vanilla?

The first image is of the vanilla accessibility options screen. The modded screenshots show a custom tooltip implementation that respects tab focus and how 22w45a affects its tooltips.

I was able to reproduce in an unmodified enviroment

Shouldn't this issue be fixed in 1.19.3 pre-release 2?

@@unknown: are you saying that you can't reproduce this anymore in 1.19.3-pre2? Or what do you mean otherwise?

haykam

(Unassigned)

Confirmed

Platform

Important

Accessibility, UI

22w45a, 22w46a

1.19.3 Pre-release 2

Retrieved