mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-18 04:20:11 -07:00
Fix sqare detection box for touch slopiness
This commit is contained in:
parent
a5d0c89be6
commit
3cb50a46ca
1 changed files with 1 additions and 2 deletions
|
|
@ -80,8 +80,7 @@ public class MinecraftGLView extends TextureView {
|
|||
float x = CallbackBridge.mouseX;
|
||||
float y = CallbackBridge.mouseY;
|
||||
if (CallbackBridge.isGrabbing() &&
|
||||
Math.abs(initialX - x) < FINGER_STILL_THRESHOLD &&
|
||||
Math.abs(initialY - y) < FINGER_STILL_THRESHOLD) {
|
||||
MathUtils.dist(x, y, mouse_x, mouse_y) < FINGER_STILL_THRESHOLD) {
|
||||
triggeredLeftMouseButton = true;
|
||||
sendMouseButton(LWJGLGLFWKeycode.GLFW_MOUSE_BUTTON_LEFT, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue