Skip to content

Commit

Permalink
oct-2027: mobile navbar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikolajczyk committed Oct 4, 2024
1 parent 5b40982 commit b7095d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/shared/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const Layout: FC<LayoutProps> = ({
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;
Expand Down

0 comments on commit b7095d8

Please sign in to comment.