mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -04:00
Fix sqare detection box for touch slopiness
This commit is contained in:
parent
a5d0c89be6
commit
3cb50a46ca
@ -80,8 +80,7 @@ public class MinecraftGLView extends TextureView {
|
|||||||
float x = CallbackBridge.mouseX;
|
float x = CallbackBridge.mouseX;
|
||||||
float y = CallbackBridge.mouseY;
|
float y = CallbackBridge.mouseY;
|
||||||
if (CallbackBridge.isGrabbing() &&
|
if (CallbackBridge.isGrabbing() &&
|
||||||
Math.abs(initialX - x) < FINGER_STILL_THRESHOLD &&
|
MathUtils.dist(x, y, mouse_x, mouse_y) < FINGER_STILL_THRESHOLD) {
|
||||||
Math.abs(initialY - y) < FINGER_STILL_THRESHOLD) {
|
|
||||||
triggeredLeftMouseButton = true;
|
triggeredLeftMouseButton = true;
|
||||||
sendMouseButton(LWJGLGLFWKeycode.GLFW_MOUSE_BUTTON_LEFT, true);
|
sendMouseButton(LWJGLGLFWKeycode.GLFW_MOUSE_BUTTON_LEFT, true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user