mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 09:07:48 -04:00
Fix in-menu behavior
This commit is contained in:
parent
e8e4089e91
commit
a3fb8317b6
@ -347,7 +347,10 @@ public class BaseMainActivity extends LoggableActivity {
|
|||||||
|
|
||||||
// System.out.println("Pre touch, isTouchInHotbar=" + Boolean.toString(isTouchInHotbar) + ", action=" + MotionEvent.actionToString(e.getActionMasked()));
|
// System.out.println("Pre touch, isTouchInHotbar=" + Boolean.toString(isTouchInHotbar) + ", action=" + MotionEvent.actionToString(e.getActionMasked()));
|
||||||
|
|
||||||
|
if(!CallbackBridge.isGrabbing()) {
|
||||||
|
mouse_x = (int) (e.getX() * scaleFactor);
|
||||||
|
mouse_y = (int) (e.getY() * scaleFactor);
|
||||||
|
}
|
||||||
|
|
||||||
int hudKeyHandled = handleGuiBar((int)e.getX(), (int)e.getY());
|
int hudKeyHandled = handleGuiBar((int)e.getX(), (int)e.getY());
|
||||||
if (!CallbackBridge.isGrabbing() && gestureDetector.onTouchEvent(e)) {
|
if (!CallbackBridge.isGrabbing() && gestureDetector.onTouchEvent(e)) {
|
||||||
@ -461,10 +464,7 @@ public class BaseMainActivity extends LoggableActivity {
|
|||||||
prevY = e.getY();
|
prevY = e.getY();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!CallbackBridge.isGrabbing()) {
|
|
||||||
mouse_x = (int) (e.getX() * scaleFactor);
|
|
||||||
mouse_y = (int) (e.getY() * scaleFactor);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
debugText.setText(CallbackBridge.DEBUG_STRING.toString());
|
debugText.setText(CallbackBridge.DEBUG_STRING.toString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user