From b7095d8fa65e6ee5aa8f154b07cdbb7744911aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Miko=C5=82ajczyk?= Date: Fri, 4 Oct 2024 10:22:55 +0200 Subject: [PATCH] oct-2027: mobile navbar fix --- client/src/components/shared/Layout/Layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/shared/Layout/Layout.tsx b/client/src/components/shared/Layout/Layout.tsx index a43318fb2b..459330a89d 100644 --- a/client/src/components/shared/Layout/Layout.tsx +++ b/client/src/components/shared/Layout/Layout.tsx @@ -61,7 +61,7 @@ const Layout: FC = ({ const topBarWrapperEl = topBarWrapperRef.current; const listener = e => { - if (e.target.body.className === 'bodyFixed') { + if (e.target.body.className === 'bodyFixed' || window.scrollY < 0) { return; } const { offsetTop, clientHeight } = topBarWrapperEl;