Update ui.js

This commit is contained in:
Kaleb Efflandt 2024-02-14 09:23:15 -06:00 committed by GitHub
parent 4b84b9c4ae
commit 22628d1ccc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -582,9 +582,11 @@ const UI = {
if (anchor.classList.contains("noVNC_right")) {
WebUtil.writeSetting('controlbar_pos', 'left');
anchor.classList.remove("noVNC_right");
document.getElementById("noVNC_control_bar_handle").style.left = "40px";
} else {
WebUtil.writeSetting('controlbar_pos', 'right');
anchor.classList.add("noVNC_right");
document.getElementById("noVNC_control_bar_handle").style.left = "-20px";
}
// Consider this a movement of the handle