Fix camera jumps when switch to grab state while moving finger

This commit is contained in:
Duy Tran Khanh
2021-10-12 09:07:56 +07:00
committed by GitHub
parent f7b2c7b463
commit f1e4f6ea4c

View File

@@ -446,6 +446,8 @@ public class BaseMainActivity extends LoggableActivity {
scrollInitialY = (int)mouse_y;
} else if (!CallbackBridge.isGrabbing() && e.getPointerCount() == 1) { //Touch hover
CallbackBridge.sendCursorPos(e.getX(), e.getY());
prevX = e.getX();
prevY = e.getY();
} else if (!isTouchInHotbar) {
//Camera movement
if(CallbackBridge.isGrabbing()){