mirror of
https://github.com/novnc/noVNC.git
synced 2026-05-31 01:19:38 +00:00
Dont reset touch mouse button state for view-only
Fixes bug introduced in 61f93180c8.
This commit is contained in:
@@ -1575,13 +1575,16 @@ const UI = {
|
||||
.classList.add('noVNC_hidden');
|
||||
document.getElementById('noVNC_toggle_extra_keys_button')
|
||||
.classList.add('noVNC_hidden');
|
||||
document.getElementById('noVNC_mouse_button' + UI.rfb.touchButton)
|
||||
.classList.add('noVNC_hidden');
|
||||
} else {
|
||||
document.getElementById('noVNC_keyboard_button')
|
||||
.classList.remove('noVNC_hidden');
|
||||
document.getElementById('noVNC_toggle_extra_keys_button')
|
||||
.classList.remove('noVNC_hidden');
|
||||
document.getElementById('noVNC_mouse_button' + UI.rfb.touchButton)
|
||||
.classList.remove('noVNC_hidden');
|
||||
}
|
||||
UI.setMouseButton(1); //has it's own logic for hiding/showing
|
||||
},
|
||||
|
||||
updateShowDotCursor() {
|
||||
|
||||
Reference in New Issue
Block a user