mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-26 01:53:11 +01:00
Never show drag icon if clipping is disabled
Toggling the enabled state is a remnant from an earlier version of the code where we could determine if the the session is actually clipped, and not just that the setting is enabled. Right now we only change things based on the setting, so let's completely hide the button when clipping is disabled.
This commit is contained in:
parent
0dcb896920
commit
6acf3c9e62
@ -1667,24 +1667,10 @@ const UI = {
|
|||||||
viewDragButton.classList.remove("noVNC_selected");
|
viewDragButton.classList.remove("noVNC_selected");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Different behaviour for touch vs non-touch
|
if (UI.rfb.clipViewport) {
|
||||||
// The button is disabled instead of hidden on touch devices
|
|
||||||
if (isTouchDevice) {
|
|
||||||
viewDragButton.classList.remove("noVNC_hidden");
|
viewDragButton.classList.remove("noVNC_hidden");
|
||||||
|
|
||||||
if (UI.rfb.clipViewport) {
|
|
||||||
viewDragButton.disabled = false;
|
|
||||||
} else {
|
|
||||||
viewDragButton.disabled = true;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
viewDragButton.disabled = false;
|
viewDragButton.classList.add("noVNC_hidden");
|
||||||
|
|
||||||
if (UI.rfb.clipViewport) {
|
|
||||||
viewDragButton.classList.remove("noVNC_hidden");
|
|
||||||
} else {
|
|
||||||
viewDragButton.classList.add("noVNC_hidden");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user