emilyploszaj / emi

A featureful and accessible item and recipe viewer
MIT License
220 stars 46 forks source link

[Bug] Mouse wheel scrolls 3 index pages instead of 1 on macOS #511

Closed unilock closed 2 months ago

unilock commented 2 months ago

On macOS specifically, when scrolling the mouse wheel to navigate between pages of EMI's index, each "click" of the wheel (individual event?) moves 3 pages ahead (or behind) instead of only 1 page.

This can be worked around by either enabling "Discrete Scrolling" in Minecraft's "Mouse Settings", or by installing another mod such as MacOS Input Fixes (both of which may not exist for every version).

As far as I know (and have tested), this issue persists across every EMI version, from 0.1.0 to 1.1.4, from Minecraft 1.4.7 to 1.20.4.


MouseTweaks has a similar issue, and has implemented a toggleable workaround for it ("ScrollItemScaling"):


This is my (crude) workaround for retroEMI (source):

image

I'm not sure how applicable it is to modern EMI.

emilyploszaj commented 2 months ago

"Discrete Scrolling" is the option in minecraft that specifically ignores magnitude in scrolling, which EMI inherits from vanilla. Scrolling 3 pages at once, while weird, is "correct behavior" according to how minecraft defines scrolling events.

unilock commented 2 months ago

I guess that makes sense, but it does make EMI's various scrollable menus (the index, as well as recipe categories) difficult to navigate without manually clicking the arrow buttons - and Minecraft's own menus (the chat HUD, creative mode inventory, etc.) seem to move "too fast" with "Discrete Scrolling" enabled - all in my own opinion...

I would suggest that EMI have its own separate "Discrete Scrolling" option, but that's probably too niche a feature. (maybe I should just backport it to 1.4.7, sob)