mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 21:40:15 -07:00
Use scaled x,y for touch hover
This commit is contained in:
parent
f1e4f6ea4c
commit
f30b4a23e0
1 changed files with 1 additions and 1 deletions
|
|
@ -445,7 +445,7 @@ public class BaseMainActivity extends LoggableActivity {
|
||||||
scrollInitialX = (int)mouse_x;
|
scrollInitialX = (int)mouse_x;
|
||||||
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(mouse_x, mouse_y);
|
||||||
prevX = e.getX();
|
prevX = e.getX();
|
||||||
prevY = e.getY();
|
prevY = e.getY();
|
||||||
} else if (!isTouchInHotbar) {
|
} else if (!isTouchInHotbar) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue