From dd625e219c45657d792ceb8220c9eabe243137ec Mon Sep 17 00:00:00 2001 From: Zach Molony <31472522+zachmolony@users.noreply.github.com> Date: Thu, 30 Nov 2023 15:11:44 +0000 Subject: [PATCH] touchstart --- app/components/Layout.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/components/Layout.tsx b/app/components/Layout.tsx index 3f72cfc..922b40c 100644 --- a/app/components/Layout.tsx +++ b/app/components/Layout.tsx @@ -74,8 +74,11 @@ export function Layout({cart, children = null, header}: LayoutProps) { }; window.addEventListener('click', handleClick); + window.addEventListener('touchstart', handleClick'); + return () => { window.removeEventListener('click', handleClick); + window.removeEventListener('touchstart', handleClick); }; }, []);