Fix a missing test

This commit is contained in:
SerpentSpirale 2021-06-17 22:39:35 +02:00
parent fc00455a48
commit 573c7c3483

View file

@ -335,7 +335,7 @@ public class BaseMainActivity extends LoggableActivity {
}
int hudKeyHandled = handleGuiBar((int)e.getX(), (int)e.getY());
if (!CallbackBridge.isGrabbing() && gestureDetector.onTouchEvent(e)){
if (!CallbackBridge.isGrabbing() && gestureDetector.onTouchEvent(e) && hudKeyHandled == -1){
CallbackBridge.putMouseEventWithCoords(rightOverride ? (byte) 1 : (byte) 0, mouse_x, mouse_y);
if (!rightOverride) CallbackBridge.mouseLeft = true;
return true;