mojira.dev
MC-11739

When releasing the mouse over the Survival tab in the Creative menu while using the scroll bar, the inventory switches to the Survival tab

The bug

When scrolling down in any inventory tab with an active scrollbar, scrolling too far and releasing on top of the survival inventory tab switches to it.

Not a terrible bug, but very annoying when trying to quickly scroll to the bottom of a tab.

Linked issues

Attachments

Comments 34

Happens when scrolling up as well (switching to the search page).

Confirmed, but I think I know what is going on.
When you release your mouse while over the survival inventory tab, it switches to the tab.An easy fix is to make sure that you aren't over the survival inventory tab when you release.

Confirmed for 1.8. When you clock anywhere while the Inventory is open (even not on the GUI), and release on any tab, you will switch to it.

Confirmed for 1.8.1-pre1.

24 more comments

Can confirm in 1.19.

Can confirm in 1.19.2.

Code analysis (Yarn mappings)

One fix for this issue would be to move the CreativeInventoryScreen#mouseReleased method that implements the item group selection behavior to the CreativeInventoryScreen#mouseClicked method. A side effect would be that the item group would be changed when the mouse is first pressed, but that would be more consistent with other user interface elements.

This issue still exists in Minecraft 1.19.4.

This issue still affects 23w12a.

Anon Ymus

(Unassigned)

Confirmed

Platform

Low

UI

inventory, scrollbar

Minecraft 1.5, Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w18c, Snapshot 13w19a, ..., 1.20.3 Release Candidate 1, 1.20.4, 1.21.1, 24w35a, 25w08a

Retrieved