From a7cc0785f9a1302322af7a14c86c8f01d8e12d88 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 30 Mar 2024 14:44:48 +0800 Subject: [PATCH] Test another fix for submenus not opening --- src/components/nav-menu.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/nav-menu.jsx b/src/components/nav-menu.jsx index 0a4bb570..9e1759f3 100644 --- a/src/components/nav-menu.jsx +++ b/src/components/nav-menu.jsx @@ -21,6 +21,8 @@ import Avatar from './avatar'; import Icon from './icon'; import MenuLink from './menu-link'; +const supportsTouch = 'ontouchstart' in window; + function NavMenu(props) { const snapStates = useSnapshot(states); const { masto, instance, authenticated } = api(); @@ -210,6 +212,7 @@ function NavMenu(props) { )} {lists?.length > 0 ? ( Bookmarks