summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mannehed <samuel@cendio.se>2018-06-04 21:22:51 +0200
committerSamuel Mannehed <samuel@cendio.se>2018-06-04 21:41:45 +0200
commit0342e4f4891a0c29f10b25a53258bf40890bc9fd (patch)
tree5f6ec7790648de0137ed408ed8a1c327a754af41
parentfe70a1d51f5a7ed0450a24181610d15f77f925af (diff)
downloadnovnc-0342e4f4891a0c29f10b25a53258bf40890bc9fd.tar.gz
Clipping should be enabled on touch
This was always the intention and the main use case of 'clipping'. It seems like it got lost somewhere along the way.
-rw-r--r--app/ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/ui.js b/app/ui.js
index d587cfc..ceac197 100644
--- 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);