Skip to content

Commit 85690d2

Browse files
authored
Merge branch 'main' into dev
2 parents 49a5fbd + 74336da commit 85690d2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
7.95 MB
Binary file not shown.

src/shared/components/header/Header.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ function Header({ className, isMain = false }: Props) {
4646
return;
4747
}
4848

49+
if (y <= 10) {
50+
setVisible(true);
51+
setShowShadow(false);
52+
return;
53+
}
54+
4955
setLastScrollTop(y); // 마지막 위치 갱신
5056
}, [lastScrollTop, y]);
5157

0 commit comments

Comments
 (0)