]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Dont reset touch mouse button state for view-only
authorSamuel Mannehed <samuel@cendio.se>
Thu, 1 Nov 2018 10:22:19 +0000 (11:22 +0100)
committerSamuel Mannehed <samuel@cendio.se>
Thu, 1 Nov 2018 10:22:19 +0000 (11:22 +0100)
Fixes bug introduced in 61f93180c8cbdc6259d0b083b51f169053f66f8c.

app/ui.js

index 538b49da68e0ae1fa46e7a99de74f8e9691366e7..3c99beb84289ba0b173140e6193c792dc854a451 100644 (file)
--- a/app/ui.js
+++ b/app/ui.js
@@ -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() {