mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 17:47:12 -04:00
Android: Fix deleting blocks when double click to join from server list
This commit is contained in:
parent
c9d0fcbf5e
commit
b8b29dfb07
@ -502,6 +502,7 @@ public class MainActivity extends Activity {
|
||||
|
||||
@Override
|
||||
public boolean deleteSurroundingText(int beforeLength, int afterLength) {
|
||||
|
||||
boolean success = super.deleteSurroundingText(beforeLength, afterLength);
|
||||
updateText();
|
||||
return success;
|
||||
|
@ -1113,6 +1113,9 @@ static void OnInit(void) {
|
||||
Event_Register_(&UserEvents.HackPermsChanged, NULL, InputHandler_CheckZoomFov);
|
||||
KeyBind_Init();
|
||||
StoredHotkeys_LoadAll();
|
||||
/* Fix issue with Android where if you double click in server list to join, a touch */
|
||||
/* pointer is stuck down when the game loads (so you instantly start deleting blocks) */
|
||||
ClearTouches();
|
||||
}
|
||||
|
||||
static void OnFree(void) {
|
||||
|
@ -131,7 +131,7 @@ void interop_SyncFS(void) {
|
||||
FS.syncfs(false, function(err) {
|
||||
if (!err) return;
|
||||
console.log(err);
|
||||
ccall('Platform_LogError', 'void', ['string'], ['&cError saving IndexedDB:']);
|
||||
ccall('Platform_LogError', 'void', ['string'], ['&cError saving files to IndexedDB:']);
|
||||
ccall('Platform_LogError', 'void', ['string'], [' &c' + err]);
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user