If your mouse has a tiltable scroll wheel, tilting it to the left will move your selected slot one to the right, and tilting it to the right will move you one to the left, which seems wrong to me.
This could be fixed quite easily by having entries in the Key Binds menu for these actions instead of hardcoding them: “Hotbar Previous” and “Hotbar Next”'s actions could be manually swapped from this menu (or indeed bound to keys, or other actions bound to tilted wheels).
Linked issues
relates to 2
Attachments
Comments 7
Can confirm bug exists in 26.1.2 as well as 1.21.11. Creating entries in the Key Binds menu for the hotbar actions would also allow unbinding them, which would be quite helpful for players with mouses where it is easy to accidently press tilt left / right while pressing the mouse wheel, as it interferes with the pick block action
Are you sure this is a valid issue, and not just mouse side-scrolling behavior on your system being weird by default, as is the case with MC-266429?
Thank you for helping us improve Minecraft! We saved your files: