digitoimistodude/air-light

Wrong navigation offset if scrolled down a bit before pressing burger

Closed this issue · 2 comments

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.

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.