mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 08:35:37 -04:00
Fix: Scroll inside menus
Turns out I crossed the axis...
This commit is contained in:
parent
9459bb8d24
commit
ca2e9f8199
@ -422,7 +422,7 @@ public class MinecraftGLSurface extends View implements GrabListener{
|
|||||||
CallbackBridge.DEBUG_STRING.setLength(0);
|
CallbackBridge.DEBUG_STRING.setLength(0);
|
||||||
return true;
|
return true;
|
||||||
case MotionEvent.ACTION_SCROLL:
|
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;
|
return true;
|
||||||
case MotionEvent.ACTION_BUTTON_PRESS:
|
case MotionEvent.ACTION_BUTTON_PRESS:
|
||||||
return sendMouseButtonUnconverted(event.getActionButton(),true);
|
return sendMouseButtonUnconverted(event.getActionButton(),true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user