fix: make scroll amount for top reveal 100 for better user experience on touch screen devices

This commit is contained in:
Tim Rijkse
2026-01-15 10:50:41 +01:00
parent d8185591f1
commit f5d2b242c0

View File

@@ -43,7 +43,7 @@ class SiteHeader extends HTMLElement {
this.classList.remove("reveal"); this.classList.remove("reveal");
} else if (delta < 0) { } else if (delta < 0) {
this.upwardScroll += Math.abs(delta); this.upwardScroll += Math.abs(delta);
if (this.upwardScroll >= 20) { if (this.upwardScroll >= 100) {
this.headerOffset = 0; this.headerOffset = 0;
this.classList.add("reveal"); this.classList.add("reveal");
} }