digitoimistodude / air-light

💨 WordPress starter theme - designed to be minimal, ultra-lightweight (< 20 kB) and easy for all kinds of WordPress projects. 7+years/1000+hours of development and still updating daily! We prefer the original WordPress way of doing things so no strange templating languages or frameworks here.
https://airwptheme.com
MIT License
945 stars 142 forks source link

Wrong navigation offset if scrolled down a bit before pressing burger #149

Closed ronilaukkarinen closed 2 years ago

ronilaukkarinen commented 2 years ago

If you scroll down a bit and still see burger and click the half of it, the nav opens up wrongly on mobile devices:

Screen-Shot-2022-05-04-14-53-02 31

Thanks @Tumppex for spotting the bug. This can be fixed any time but not a priority right now. Any help is appreciated.

ronilaukkarinen commented 2 years ago

Ideas for the fix: Let's add scroll to top event when clicking the nav toggle or will calculate height via JS. This can't be easily resolved with CSS-only. Any suggestions welcome.

ronilaukkarinen commented 2 years ago

Fixed in 8.4.0 (1a855f2cecfb86f1a8a7afc69bb5604a695c00da).