mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 13:00:12 -07:00
Fix camera jumps when switch to grab state while moving finger
This commit is contained in:
parent
f7b2c7b463
commit
f1e4f6ea4c
1 changed files with 2 additions and 0 deletions
|
|
@ -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()){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue