mojira.dev
MC-179165

Releasing the left mouse button on creative mode inventory tabs clicks them even if the click started elsewhere

To reproduce:

1. Open the creative inventory
2. Move the cursor outside of the inventory GUI
3. Start holding the left mouse button
4. Move the left mouse button on a currently not selected inventory tab
5. Release the left mouse button and observe the selected inventory tab change

This behavior is at the very least inconsistent with the visually identical advancements GUI tabs, and in my opinion shouldn't happen at all - clicks should only be registered if the click started and ended on the same UI element. See MC-110368 for more info on this topic.

Linked issues

Comments 13

Can confirm in 21w03a.

Can confirm in 21w05a.

Can confirm in 21w06a.

Can confirm in 21w07a.

3 more comments

Can confirm in 1.17.

Can confirm in 1.17.1.

Can confirm in 1.19.2.

The fix for this issue would be to simply move the CreativeInventoryScreen#mouseReleased (Yarn mappings) method into the CreativeInventoryScreen#mouseClicked method. Note that this is the same fix for MC-11739, since they are the same issue and I think one should duplicate the other.

This behavior still exists in Minecraft snapshot 23w14a.

[Mod] redstonehelper

(Unassigned)

Confirmed

Input

1.15.2, 1.16.2, 1.16.3, 1.16.4, 20w45a, ..., 22w43a, 1.19.4, 23w14a, 23w17a, 1.21

Retrieved