fix(LWJGL3): fixed mouse scroll. before was delta=0
@@ -132,7 +132,7 @@ private void mouseButtonCallback(long window, int button, int action, int mods)
private void scrollCallback(long windows, double xoffset, double yoffset) {
if (yoffset != 0.0) {
int id = (yoffset > 0) ? 1 : -1;
- queue.offer(new MouseAction(InputType.MOUSE_WHEEL.getInput(id), (int) (id * yoffset / 120), getPosition()));
+ queue.offer(new MouseAction(InputType.MOUSE_WHEEL.getInput(id), 1, getPosition()));
}
}
}
