fixed ios mouse buttons

This commit is contained in:
Maxim Devaev 2022-10-06 05:06:17 +03:00
parent b3c7340504
commit b2361f1fbe
2 changed files with 7 additions and 0 deletions

View File

@ -106,6 +106,7 @@ div#stream-mouse-buttons {
@media only screen and (hover: none) and (pointer: coarse) {
div#stream-window {
padding-top: 3px !important;
padding-bottom: 80px !important;
border-top: 0 !important;
border-left: 0 !important;
border-right: 0 !important;

View File

@ -362,6 +362,12 @@ function __WindowManager() {
var __organizeWindowsOnBrowserResize = function() {
for (let el_window of $$("window")) {
if (el_window.style.visibility === "visible") {
if (tools.browser.is_ios && el_window.classList.contains("window-resizable")) {
// FIXME: При смене ориентации на мобильном браузере надо сбрасывать
// настройки окна стрима, поэтому тут стоит вот этот костыль
el_window.style.width = "";
el_window.style.height = "";
}
__organizeWindow(el_window);
}
}