mirror of
https://codeberg.org/Freedium-cfd/web.git
synced 2026-03-11 09:04:37 +00:00
fix(Header): adjust scroll threshold for header visibility from 15% to 5% to improve user experience
This commit is contained in:
parent
189c4d851b
commit
9b9a4b628e
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@
|
|||
const documentHeight = document.documentElement.scrollHeight - window.innerHeight;
|
||||
const scrollPercentage = (currentScrollY / documentHeight) * 100;
|
||||
|
||||
if (scrollPercentage > 15) {
|
||||
if (scrollPercentage > 5) {
|
||||
isHeaderVisible = lastScrollY > currentScrollY;
|
||||
} else {
|
||||
isHeaderVisible = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue