mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 13:00:12 -07:00
Possible fix for broken touch hover
This commit is contained in:
parent
4152a0011e
commit
96202b9d05
1 changed files with 2 additions and 0 deletions
|
|
@ -444,6 +444,8 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
CallbackBridge.sendScroll(Tools.pxToDp(mouse_x - scrollInitialX)/30 , Tools.pxToDp(mouse_y - scrollInitialY)/30);
|
||||
scrollInitialX = (int)mouse_x;
|
||||
scrollInitialY = (int)mouse_y;
|
||||
} else if (!CallbackBridge.isGrabbing() && e.getPointerCount() == 1) { //Touch hover
|
||||
CallbackBridge.sendCursorPos(e.getX(), e.getY());
|
||||
} else if (!isTouchInHotbar) {
|
||||
//Camera movement
|
||||
if(CallbackBridge.isGrabbing()){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue