Fix in-menu behavior

This commit is contained in:
SerpentSpirale 2021-05-22 22:19:41 +02:00 committed by SerpentSpirale
parent e8e4089e91
commit a3fb8317b6

View File

@ -347,7 +347,10 @@ public class BaseMainActivity extends LoggableActivity {
// 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());
if (!CallbackBridge.isGrabbing() && gestureDetector.onTouchEvent(e)) {
@ -461,10 +464,7 @@ public class BaseMainActivity extends LoggableActivity {
prevY = e.getY();
}
}
if(!CallbackBridge.isGrabbing()) {
mouse_x = (int) (e.getX() * scaleFactor);
mouse_y = (int) (e.getY() * scaleFactor);
}
debugText.setText(CallbackBridge.DEBUG_STRING.toString());