fix(Header): adjust scroll threshold for header visibility from 15% to 5% to improve user experience

This commit is contained in:
ZhymabekRoman 2025-01-02 21:11:33 +05:00
parent 189c4d851b
commit 9b9a4b628e

View file

@ -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;