fix: make scroll amount for top reveal 100 for better user experience on touch screen devices
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user