Skip to content

Commit

Permalink
touchstart
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmolony committed Nov 30, 2023
1 parent 9412d24 commit dd625e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
}, []);

Expand Down

0 comments on commit dd625e2

Please sign in to comment.