fix laptop touchscreens with new modern ui
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
May 27, 2026 at 22:20 UTC
7c91a6e0b5d657861aabf224e87fbd7f839103b6
1 file changed
+1
-1
views/default3.handlebars
+1
-1
@@ -68,7 +68,7 @@
68
<body id="body" oncontextmenu="handleContextMenu(event)" style="display:none;min-width:495px"
69
onload="if (typeof(startup) !== 'undefined') startup();">
70
<script>
71
- if ('ontouchstart' in window || navigator.maxTouchPoints > 0) {
71
+ if (('ontouchstart' in window || navigator.maxTouchPoints > 0) && window.matchMedia('(pointer: coarse)').matches) {
72
document.body.classList.add('is-mobile');
73
document.documentElement.classList.add('is-mobile');
74
}