mojira.dev
MC-185630

Tooltips in enchantment table UI are inaccurate

The only steps I took to create this was what's shown in this video, I mouse up from the second level enchant to the first but the tooltip doesn't change, until the next time I mouse over it again.

To reproduce

  1. Place an enchanting table

  2. Put an enchantable item in it

  3. Move your mouse on the bottom edge of button 3
    ❌ You will see that the button is highlighted, but you don’t see the tooltip.

Or:

  1. Place an enchanting table

  2. Put an enchantable item in it

  3. Move your mouse on the bottom edge of button 1 or 2

  4. Click the button
    ❌ You might get a different enchantment than the one in the tooltip

Linked issues

Attachments

Comments 10

Please check if it happens without any modifications installed.

Quick Links:
πŸ““ Issue Guidelines – πŸ’¬ Community Support – πŸ“§ Customer Support – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

I thought I replied earlier but apparently not. The only modifications I had installed were Optifine and a few quality of life datapacks, but nothing that has anything to do with enchanting.

You are absolutely correct, it looks like basically, there is a bit of space where, even though the middle or bottom option is selected, the option for the one above shows up in the tooltip. It does favour the one selected over the one in the tooltip.

So having played around with it again, turns out is reproducible, as in this image: https://imgur.com/jpU6uZF

It takes a few tries, but I think I just got unlucky in the original video.

The problem here seems to be that the position of the mouse where the tooltip appears is a bit higher than the position where the button gets highlighted. This means that when your mouse is on the bottom edge of button 3, the button will be highlighted, but the tooltip doesn’t appear and if your mouse is on the top edge of button 1, you will see the tooltip without having the button highlighted. This can also cause you to for example see the tooltips of button 2, but have button 1 highlighted. When you then click, you will get the enchantment from button 1, because that one is highlighted, which means, that you will not get the enchantment, that the tooltip shows.

Reproduction steps:

  1. Place an enchanting table

  2. Put an enchantable item in it

  3. Move your mouse on the bottom edge of buton 3
    ❌ You will see, that the button is highlighted, but you don’t see the tooltip.

[media]

Can confirm in 21w03a.

Can confirm in 1.19.2.

Can confirm for 24w13a.

[media]

[media]

Benjamin Wall

(Unassigned)

Confirmed

UI

1.15.2, 20w21a, 1.16.1, 1.16.3, 1.16.4, 20w48a, 20w51a, 21w03a, 21w07a, 1.19.2

Retrieved