Random responsive improvements
This commit is contained in:
@@ -16,6 +16,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
if (navbar || punch || homeTitle) {
|
||||
let lastScrollY = window.scrollY;
|
||||
|
||||
window.addEventListener('mousemove', (event) => {
|
||||
if (navbar && event.clientY < 100) {
|
||||
navbar.style.top = '0';
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener('scroll', () => {
|
||||
let currentScrollY = window.scrollY;
|
||||
|
||||
Reference in New Issue
Block a user