This commit is contained in:
Ginger Wong
2020-06-15 16:23:39 -07:00
parent 59ab5e9e98
commit 44058c24aa
2 changed files with 12 additions and 11 deletions

View File

@@ -72,7 +72,7 @@ class Messaging {
this.inputChangeUserName.addEventListener("keydown", this.handleUsernameKeydown.bind(this));
this.formMessageInput.addEventListener("keydown", this.handleMessageInputKeydown.bind(this));
this.btnSubmitMessage.addEventListener("click", this.handleSubmitChatButton.bind(this));
if (isAndroidMobile && window.screen.width <= 860) {
if (hasTouchScreen) {
this.formMessageInput.addEventListener("focus", this.handleKeyboardAppear.bind(this));
this.formMessageInput.addEventListener("blur", this.handleKeyboardOut.bind(this));
}
@@ -98,11 +98,11 @@ class Messaging {
}
handleKeyboardAppear() {
this.tagAppContainer.classList.add("android-message-focus");
setTimeout(() => {this.tagAppContainer.classList.add("message-input-focus");}, 50);
mobileVHhack();
}
handleKeyboardOut() {
this.tagAppContainer.classList.remove("android-message-focus");
setTimeout(() => {this.tagAppContainer.classList.remove("message-input-focus");}, 50);
mobileVHhack();
}