= scrollDistance) ? false : true;
currentY = window.pageYOffset;
scrollDirection = (window.pageYOffset > lastY) ? 'down' : 'up';
(scrollDirection == 'down') ? (scrolledDown += 1) : (scrolledUp += 1);
(scrollDirection != lastDirection) ? scrolledDown = 0 : false;
(scrollDirection != lastDirection) ? scrolledUp = 0 : false;
lastY = window.pageYOffset;
lastDirection = scrollDirection;
(scrolledDown > scrollDistance && scrollDirection == 'down') ? showMenu = false : false;
(scrolledDown > scrollDistance && scrollDirection == 'down') ? scrolledDown = 0 : false;
(scrolledUp > scrollDistance && scrollDirection == 'up') ? showMenu = true : false;
(scrolledUp > scrollDistance && scrollDirection == 'up') ? scrolledUp = 0 : false;
(scrollAtTop) ? showMenu = true : false;
}
"
x-on:resize.window="(parseInt(screen.width) >= 1024) ? open = false : false"
>