diff options
author | Samuel Mannehed <samuel@cendio.se> | 2022-12-14 14:06:16 +0100 |
---|---|---|
committer | Samuel Mannehed <samuel@cendio.se> | 2022-12-14 14:06:16 +0100 |
commit | f1550c69d9a70c3906fb49e33208bf8f2013bd76 (patch) | |
tree | 128525d2428d4c2a0e9e6504016b371f53ca3afa /app/ui.js | |
parent | 6d7d45ba08e203e616171e53cea5b2bd2314dc4d (diff) | |
download | novnc-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.js | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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); } |