diff options
author | Maxim Devaev <[email protected]> | 2022-10-06 05:06:17 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-10-06 05:06:17 +0300 |
commit | b2361f1fbe7666dd0e41d58a9f920185e386f12a (patch) | |
tree | 66822228c9deb63d4b06e2be590f1049e60e65d2 /web | |
parent | b3c7340504cacba50bba2cb4ba4817d3085edaf7 (diff) |
fixed ios mouse buttons
Diffstat (limited to 'web')
-rw-r--r-- | web/share/css/kvm/stream.css | 1 | ||||
-rw-r--r-- | web/share/js/wm.js | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/web/share/css/kvm/stream.css b/web/share/css/kvm/stream.css index 91a019d0..519d1efb 100644 --- a/web/share/css/kvm/stream.css +++ b/web/share/css/kvm/stream.css @@ -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; diff --git a/web/share/js/wm.js b/web/share/js/wm.js index 791ab36b..fd26c730 100644 --- a/web/share/js/wm.js +++ b/web/share/js/wm.js @@ -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); } } |