Update ui.js

This commit is contained in:
Kaleb Efflandt 2024-02-14 01:29:33 -06:00 committed by GitHub
parent d9e0d247c2
commit 3d86b68035
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -618,10 +618,12 @@ const UI = {
const anchor = document.getElementById('noVNC_control_bar_anchor');
if (ptr.clientX < (window.innerWidth * 0.1)) {
if (anchor.classList.contains("noVNC_right")) {
document.getElementById("noVNC_control_bar_handle").style.left = "40px";
UI.toggleControlbarSide();
}
} else if (ptr.clientX > (window.innerWidth * 0.9)) {
if (!anchor.classList.contains("noVNC_right")) {
document.getElementById("noVNC_control_bar_handle").style.left = "-20px";
UI.toggleControlbarSide();
}
}