mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -04:00
Use scaled x,y for touch hover
This commit is contained in:
parent
f1e4f6ea4c
commit
f30b4a23e0
@ -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…
x
Reference in New Issue
Block a user