From bcf462aad40f534fdd17465ef10f7ad47f73bf1d Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Fri, 15 Nov 2024 16:28:17 +0000 Subject: [PATCH] remove mistakenly commited file --- src/useIsTouchscreen.ts | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/useIsTouchscreen.ts 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)");