]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Clipping should be enabled on touch
authorSamuel Mannehed <samuel@cendio.se>
Mon, 4 Jun 2018 19:22:51 +0000 (21:22 +0200)
committerSamuel Mannehed <samuel@cendio.se>
Mon, 4 Jun 2018 19:41:45 +0000 (21:41 +0200)
This was always the intention and the main use case of 'clipping'. It
seems like it got lost somewhere along the way.

app/ui.js

index d587cfc692dcae336c56a25713684276b9c0d6ee..ceac19757115abc0205499d998510b67abd43e50 100644 (file)
--- a/app/ui.js
+++ b/app/ui.js
@@ -157,7 +157,7 @@ const UI = {
         UI.initSetting('host', window.location.hostname);
         UI.initSetting('port', port);
         UI.initSetting('encrypt', (window.location.protocol === "https:"));
-        UI.initSetting('view_clip', false);
+        UI.initSetting('view_clip', isTouchDevice);
         UI.initSetting('resize', 'off');
         UI.initSetting('shared', true);
         UI.initSetting('view_only', false);