summaryrefslogtreecommitdiff
path: root/app/ui.js
diff options
context:
space:
mode:
authorSamuel Mannehed <samuel@cendio.se>2022-12-14 14:06:16 +0100
committerSamuel Mannehed <samuel@cendio.se>2022-12-14 14:06:16 +0100
commitf1550c69d9a70c3906fb49e33208bf8f2013bd76 (patch)
tree128525d2428d4c2a0e9e6504016b371f53ca3afa /app/ui.js
parent6d7d45ba08e203e616171e53cea5b2bd2314dc4d (diff)
downloadnovnc-f1550c69d9a70c3906fb49e33208bf8f2013bd76.tar.gz
Get rid of noVNC_touch in favor for @media queries
This commit removes our dependency on the class "noVNC_touch" which was set by Javascript. Instead, we can use the CSS media query "any-pointer: coarse", which means that any pointing device that isn't accurate is available. In practice this seems to basically be equal to that a touch screen is available. This change lets us simplify the selectors in many cases as well, which is a nice bonus.
Diffstat (limited to 'app/ui.js')
-rw-r--r--app/ui.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/ui.js b/app/ui.js
index 3eb02cb..ec508e3 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -88,7 +88,6 @@ const UI = {
// Adapt the interface for touch screen devices
if (isTouchDevice) {
- document.documentElement.classList.add("noVNC_touch");
// Remove the address bar
setTimeout(() => window.scrollTo(0, 1), 100);
}