Conflict with scroll wheel
raoulvdberge opened this issue ยท 0 comments
I have an inventory that scrolls when using the scroll wheel.
I'm noticing that when I'm hovering over a slot while scrolling, that some scroll values (retrieved through Mouse.getEventDWheel()
) are swallowed and are returning 0. This only happens when scrolling OVER a slot.
This makes scrolling harder: it takes more scrolling to get it to actually return a non-0 value.
This issue isn't present when Inventory Sorter isn't installed.
I did add the container AND the slot to the blacklist through IMC. While the scroller features are in fact disabled on the slot and container, it is still conflicting the mouse wheel.
The place where I'm calling Mouse.getEventDWheel()
is in GuiScreen#handleMouseInput
.
Relevant code:
Scrolling code (aka the Mouse.getEventDWheel()
call):
https://github.com/raoulvdberge/refinedstorage/blob/mc1.12/src/main/java/com/raoulvdberge/refinedstorage/gui/GuiBase.java#L208-L217
IMC blacklisting call (in preInit
):
https://github.com/raoulvdberge/refinedstorage/blob/mc1.12/src/main/java/com/raoulvdberge/refinedstorage/proxy/ProxyCommon.java#L228
(The blacklisting works fine; the behavior is disabled, but it's still swallowing scroll values)
Thank you.