From da7dbeb0fc166a71242f8f91de00fda335bdeda9 Mon Sep 17 00:00:00 2001 From: Deqing Sun Date: Fri, 7 Jul 2017 19:37:28 -0400 Subject: [PATCH] fix bug of nipple in Android --- jslib/ui_init.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jslib/ui_init.js b/jslib/ui_init.js index c686c6e..5aea429 100644 --- a/jslib/ui_init.js +++ b/jslib/ui_init.js @@ -117,9 +117,9 @@ function uiInit() { function switchMouseUI(value) { if (value) { - document.getElementById('mouse_joystick').style.display = 'initial'; - document.getElementById('mouse_left').style.display = 'initial'; - document.getElementById('mouse_right').style.display = 'initial'; + document.getElementById('mouse_joystick').style.display = ''; + document.getElementById('mouse_left').style.display = ''; + document.getElementById('mouse_right').style.display = ''; } else { document.getElementById('mouse_joystick').style.display = 'none'; document.getElementById('mouse_left').style.display = 'none'; @@ -129,7 +129,7 @@ function switchMouseUI(value) { function switchKeyboardUI(value) { if (value) { - document.getElementById('keyboard_container').style.display = 'initial'; + document.getElementById('keyboard_container').style.display = ''; } else { document.getElementById('keyboard_container').style.display = 'none'; }