Open Barteks2x opened 7 years ago
This code assumes that the mouse wheel changes in constant increments of integer values:
if(input.wheel != 0.0D) { gui.handleMouseWheel((int)input.wheel); } input.wheel = 0.0D;
But with high precision touchpad when scrolling slowly, the value changes by tiny amounts, and casting it to int makes the value change by zero. So small increments are completely discarded.
Actually, looks like this issue also exists in lwjgl2 version - scrolling doesn't work correctly even in TWL theme editor.
This code assumes that the mouse wheel changes in constant increments of integer values:
But with high precision touchpad when scrolling slowly, the value changes by tiny amounts, and casting it to int makes the value change by zero. So small increments are completely discarded.