mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-28 05:45:03 -06:00
[Input pipe] Bug fix: touch after enter grab mode cause camera moved instantly
This commit is contained in:
parent
a0451c28bb
commit
67a0babb7a
1 changed files with 6 additions and 3 deletions
|
|
@ -234,10 +234,13 @@ JNIEXPORT void JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeSendCursorPos(JN
|
|||
if (!isPrepareGrabPos) {
|
||||
grabCursorX += x - lastCursorX;
|
||||
grabCursorY += y - lastCursorY;
|
||||
} else {
|
||||
}
|
||||
|
||||
lastCursorX = x;
|
||||
lastCursorY = y;
|
||||
|
||||
if (isPrepareGrabPos) {
|
||||
isPrepareGrabPos = false;
|
||||
lastCursorX = x;
|
||||
lastCursorY = y;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue