mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 08:35:37 -04:00
Fix camera jumps when switch to grab state while moving finger
This commit is contained in:
parent
f7b2c7b463
commit
f1e4f6ea4c
@ -446,6 +446,8 @@ public class BaseMainActivity extends LoggableActivity {
|
|||||||
scrollInitialY = (int)mouse_y;
|
scrollInitialY = (int)mouse_y;
|
||||||
} else if (!CallbackBridge.isGrabbing() && e.getPointerCount() == 1) { //Touch hover
|
} else if (!CallbackBridge.isGrabbing() && e.getPointerCount() == 1) { //Touch hover
|
||||||
CallbackBridge.sendCursorPos(e.getX(), e.getY());
|
CallbackBridge.sendCursorPos(e.getX(), e.getY());
|
||||||
|
prevX = e.getX();
|
||||||
|
prevY = e.getY();
|
||||||
} else if (!isTouchInHotbar) {
|
} else if (!isTouchInHotbar) {
|
||||||
//Camera movement
|
//Camera movement
|
||||||
if(CallbackBridge.isGrabbing()){
|
if(CallbackBridge.isGrabbing()){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user