Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

change touch device detection method (#5919)

authored by

Bas van den Wollenberg and committed by
GitHub
6a5770ee 7daf7a70

+1 -2
+1 -2
src/lib/browser.ts
··· 3 3 navigator.userAgent, 4 4 ) 5 5 export const isFirefox = /firefox|fxios/i.test(navigator.userAgent) 6 - export const isTouchDevice = 7 - 'ontouchstart' in window || navigator.maxTouchPoints > 1 6 + export const isTouchDevice = window.matchMedia('(pointer: coarse)').matches 8 7 export const isAndroidWeb = 9 8 /android/i.test(navigator.userAgent) && isTouchDevice