From ca2e9f8199142bb7ea0dd8581a534666ad1c0fa8 Mon Sep 17 00:00:00 2001 From: Boulay Mathias Date: Wed, 25 Jan 2023 19:10:27 +0100 Subject: [PATCH] Fix: Scroll inside menus Turns out I crossed the axis... --- .../src/main/java/net/kdt/pojavlaunch/MinecraftGLSurface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/MinecraftGLSurface.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/MinecraftGLSurface.java index b7e142058..bbbc6d6b5 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/MinecraftGLSurface.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/MinecraftGLSurface.java @@ -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);