zvun commited on
Commit
3e49191
·
unverified ·
1 Parent(s): 53e0b80

Fix incorrect touchscreen detection (#1824)

Browse files
src/lib/components/chat/ChatInput.svelte CHANGED
@@ -89,7 +89,7 @@
89
  if (!browser) return false;
90
 
91
  // Check for touch capability
92
- if (navigator.maxTouchPoints > 0) return true;
93
 
94
  // Check for touch events
95
  if ("ontouchstart" in window) return true;
 
89
  if (!browser) return false;
90
 
91
  // Check for touch capability
92
+ if (navigator.maxTouchPoints > 0 && screen.width <= 768) return true;
93
 
94
  // Check for touch events
95
  if ("ontouchstart" in window) return true;