diff --git a/src/useIsTouchscreen.ts b/src/useIsTouchscreen.ts deleted file mode 100644 index 7ff0bdf5..00000000 --- a/src/useIsTouchscreen.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* -Copyright 2022-2024 New Vector Ltd. - -SPDX-License-Identifier: AGPL-3.0-only -Please see LICENSE in the repository root for full details. -*/ - -import { useMediaQuery } from "./useMediaQuery"; - -/** - * @returns Whether the device is a touchscreen device. - */ -// Empirically, Chrome on Android can end up not matching (hover: none), but -// still matching (pointer: coarse) :/ -export const useIsTouchscreen = (): boolean => - useMediaQuery("(hover: none) or (pointer: coarse)");