Closed henkelmax closed 10 months ago
Sorry for issue hijacking, but the one who's gonna fix the bug could also solve following: 1.20.2 started to distinguish horizontal/vertical scrolling for UIs, relevant events should be updated to use both values. Events ScreenEvent.MouseScrolled.Pre/Post
for ui and InputEvent.MouseScrollingEvent
for in-game
Also MC-121772 was fixed and current patch makes almost no sense with addition of horizontal scrolling
Minecraft Version: 1.20.2
NeoForge Version: 20.2.20
Logs: N/A
Steps to Reproduce:
MouseScrollingEvent
scrollDelta
is alwaysminecraft.options.mouseWheelSensitivity()
Description of issue:
The scroll delta of the
MouseScrollingEvent
is alwaysminecraft.options.mouseWheelSensitivity()
The variable
d0
is the scroll sensitivity of your game: https://github.com/neoforged/NeoForge/blob/7357532ede1405335dd789045e6b43708b84167f/patches/net/minecraft/client/MouseHandler.java.patch#L58The event just takes that value, so you can't detect if you are scrolling up or down. https://github.com/neoforged/NeoForge/blob/7357532ede1405335dd789045e6b43708b84167f/patches/net/minecraft/client/MouseHandler.java.patch#L68