This commit is contained in:
Vanessa 2023-03-06 14:05:12 +08:00
parent e4ff4f03cd
commit dd3c011736

View file

@ -36,10 +36,10 @@ const renderKeyboardToolbar = () => {
return;
}
hideKeyboardToolbarUtil();
// if (window.innerHeight + 200 > ((window.orientation === 90 || window.orientation === -90) ? screen.width : screen.height)) {
// hideKeyboardToolbar();
// return;
// }
if (window.innerHeight + 200 > ((window.orientation === 90 || window.orientation === -90) ? screen.width : screen.height)) {
hideKeyboardToolbar();
return;
}
const dynamicElements = document.querySelectorAll("#keyboardToolbar .keyboard__dynamic");
const range = getSelection().getRangeAt(0);