浏览代码

refac: mobile detection

Timothy J. Baek 1 年之前
父节点
当前提交
e0908f9f26
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/lib/components/chat/MessageInput.svelte

+ 1 - 0
src/lib/components/chat/MessageInput.svelte

@@ -763,6 +763,7 @@
 								bind:value={prompt}
 								on:keypress={(e) => {
 									if (
+										window.innerWidth > 1024 &&
 										!(
 											'ontouchstart' in window ||
 											navigator.maxTouchPoints > 0 ||