refac: mobile detection

This commit is contained in:
Timothy J. Baek 2024-05-02 15:44:31 -07:00
parent a2ebbd02ad
commit e0908f9f26

View file

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