mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 18:45:23 -04:00
Try not intercepting any touch events when keyboard is open
This commit is contained in:
parent
9de0b309fd
commit
21939b12ba
@ -3186,7 +3186,9 @@ static EM_BOOL OnTouchMove(int type, const EmscriptenTouchEvent* ev, void* data)
|
|||||||
RescaleXY(t->targetX, t->targetY, &x, &y);
|
RescaleXY(t->targetX, t->targetY, &x, &y);
|
||||||
Input_UpdateTouch(t->identifier, x, y);
|
Input_UpdateTouch(t->identifier, x, y);
|
||||||
}
|
}
|
||||||
return true;
|
/* Don't intercept touchmove events while keyboard is open, that way */
|
||||||
|
/* user can still touch to move the caret position in input textbox. */
|
||||||
|
return !keyboardOpen;
|
||||||
}
|
}
|
||||||
|
|
||||||
static EM_BOOL OnTouchEnd(int type, const EmscriptenTouchEvent* ev, void* data) {
|
static EM_BOOL OnTouchEnd(int type, const EmscriptenTouchEvent* ev, void* data) {
|
||||||
@ -3199,7 +3201,9 @@ static EM_BOOL OnTouchEnd(int type, const EmscriptenTouchEvent* ev, void* data)
|
|||||||
RescaleXY(t->targetX, t->targetY, &x, &y);
|
RescaleXY(t->targetX, t->targetY, &x, &y);
|
||||||
Input_RemoveTouch(t->identifier, x, y);
|
Input_RemoveTouch(t->identifier, x, y);
|
||||||
}
|
}
|
||||||
return true;
|
/* Don't intercept touchend events while keyboard is open, that way */
|
||||||
|
/* user can still touch to move the caret position in input textbox. */
|
||||||
|
return !keyboardOpen;
|
||||||
}
|
}
|
||||||
|
|
||||||
static EM_BOOL OnFocus(int type, const EmscriptenFocusEvent* ev, void* data) {
|
static EM_BOOL OnFocus(int type, const EmscriptenFocusEvent* ev, void* data) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user