issue:When I scroll back to the top, the navigation doesn't load.I found that when the span#nav attribute was display: none, the $('#menu').offset().top value immediately exceeded 50.
solution:Modify the judgment range of topDistance not less than 87.
OS:macOS Monterey 12.3;
Chrome version:100.0.4896.60 (x86_64);
issue:When I scroll back to the top, the navigation doesn't load.I found that when the span#nav attribute was display: none, the $('#menu').offset().top value immediately exceeded 50.
solution:Modify the judgment range of topDistance not less than 87.