Fix: Scroll inside menus

Turns out I crossed the axis...
This commit is contained in:
Boulay Mathias 2023-01-25 19:10:27 +01:00
parent 9459bb8d24
commit ca2e9f8199

View File

@ -422,7 +422,7 @@ public class MinecraftGLSurface extends View implements GrabListener{
CallbackBridge.DEBUG_STRING.setLength(0);
return true;
case MotionEvent.ACTION_SCROLL:
CallbackBridge.sendScroll((double) event.getAxisValue(MotionEvent.AXIS_VSCROLL), (double) event.getAxisValue(MotionEvent.AXIS_HSCROLL));
CallbackBridge.sendScroll((double) event.getAxisValue(MotionEvent.AXIS_HSCROLL), (double) event.getAxisValue(MotionEvent.AXIS_VSCROLL));
return true;
case MotionEvent.ACTION_BUTTON_PRESS:
return sendMouseButtonUnconverted(event.getActionButton(),true);