mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 15:48:26 -04:00
[Input pipe] Bug fix: touch after enter grab mode cause camera moved instantly
This commit is contained in:
parent
a0451c28bb
commit
67a0babb7a
@ -234,10 +234,13 @@ JNIEXPORT void JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeSendCursorPos(JN
|
|||||||
if (!isPrepareGrabPos) {
|
if (!isPrepareGrabPos) {
|
||||||
grabCursorX += x - lastCursorX;
|
grabCursorX += x - lastCursorX;
|
||||||
grabCursorY += y - lastCursorY;
|
grabCursorY += y - lastCursorY;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
lastCursorX = x;
|
||||||
|
lastCursorY = y;
|
||||||
|
|
||||||
|
if (isPrepareGrabPos) {
|
||||||
isPrepareGrabPos = false;
|
isPrepareGrabPos = false;
|
||||||
lastCursorX = x;
|
|
||||||
lastCursorY = y;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user