mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
fixed ios mouse buttons
This commit is contained in:
parent
b3c7340504
commit
b2361f1fbe
@ -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;
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user