mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-10 01:03:36 -05:00
8 lines
269 B
TypeScript
8 lines
269 B
TypeScript
import { isDesktop, isMobile, isTablet } from "react-device-detect";
|
|
|
|
export const isTouchscreenDevice =
|
|
isDesktop || isTablet
|
|
? false
|
|
: (typeof window !== "undefined"
|
|
? navigator.maxTouchPoints > 0
|
|
: false) || isMobile;
|