mojira.dev
MC-266429

Holding shift on macOS causes hotbar scroll direction to reverse (mouse only)

Workaround

Download Scroll Reverser (or an equivalent) and ensure that it is configured as in the attached screenshot. This will reverse vertical mouse scrolling across all apps, and most likely you will prefer the new direction if you have the Natural Scrolling system setting enabled, which you likely do if you switch between mouse and trackpad frequently. Although leaving horizontal mouse scrolling unreversed may be a minor annoyance, most likely the consistent scrolling in the Minecraft hotbar will be more important to you.

On macOS, holding shift while scrolling through the hotbar reverses the scroll direction.

Background

On macOS, holding the shift key while scrolling vertically on a mouse causes the system to emit horizontal scroll events instead of vertical ones. Specifically, any scroll input that would be reported as down gets reported as right instead, and any scroll input that would be reported as up gets reported as left instead.

Previously, Minecraft did not accept horizontal scroll input at all, resulting in MC-121772; the fix for MC-121772 was imperfect, resulting in this issue and MC-269968.

Steps to reproduce
Scroll upwards or downwards on the mouse scroll wheel, while not in a GUI
Hold shift
Continue scrolling in the given direction
Observe the scroll direction being flipped

Expected results
The scroll direction staying the same regardless of shift

Observed results
The scroll direction reverses

ChatGPT pseudocode fix suggestion

if (onMacOS && shiftHeld && scrollDeltaX != 0 && scrollDeltaY == 0) {
    scrollDeltaY = scrollDeltaX; // Remap X to Y
    scrollDeltaX = 0;
}

Environment

macOS

Linked issues

Attachments

Comments 6

Hi, please list Steps to ReproduceObserved Results, and Expected Behavior in the Description.

This ticket will automatically reopen when you reply.

have now added all of that

New here and have zero clue how to use this site (sorry), but I have scoured the internet and this is the first time I found someone else noticing and complaining about this issue.

How long does it typically take for these things to be resolved in an update? It's been months and it's extremely bothersome. Is this issue in line to be resolved? Has it reached the team that handles and fixes these issues?

I can't reproduce this in 24w11a on macOS 14.3.1.

Still an issue in 1.20.4 and the snapshots.

 

Steps to reproduce:

Hold shift and scroll.

Observed results:

Selector moves backwards

Expected behavior:

Selector DOESN'T move backwards.

 

Ah I see now: the core issue is that on macOS, holding shift will switch to using horizontal scrolling instead of vertical scrolling, and when using a mouse, the direction of vertical scrolling is the opposite of what you might expect when the Natural Scrolling system setting is enabled. macOS does not have a system setting for opposite scroll directions on mouse and trackpad, so after being frustrated by this issue in various apps I installed Scroll Reverser to set everything to my liking. For this reason I was initially unaware that scrolling in Minecraft was problematic, and upon disabling the app I can report that the issue does indeed exist and that scrolling feels generally less responsive (there seems to be some acceleration going on).

Until Apple adds such a system setting I would highly recommend installing Scroll Reverser and using it with the settings below. (Most likely you will also want Natural Scrolling enabled.)

[media]

clamlol

(Unassigned)

Community Consensus

Platform

Important

Input

hotbar, scrolling

1.20.2, 23w44a, 23w45a, 24w13a, 1.20.6, 24w21b, 1.21, 1.21.1, 1.21.5

Retrieved