Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behaviour of header after scrolling down and up #2551

Closed
Hax4us opened this issue Jun 4, 2020 · 3 comments
Closed

Strange behaviour of header after scrolling down and up #2551

Hax4us opened this issue Jun 4, 2020 · 3 comments

Comments

@Hax4us
Copy link

Hax4us commented Jun 4, 2020

Environment

Expected behavior

Categories section in header must not be hidden after scrolling

Steps to reproduce the behavior

I installed the theme, then just change the title MM to Hax4Us

Here is first load of website
Screenshot_2020-06-04-11-16-57-683_com android chrome

Then after scrolling up & down 3-4 times

Screenshot_2020-06-04-11-16-52-423_com android chrome

Other

@mmistakes
Copy link
Owner

I think this is due to the JavaScript that determines if the nav links in the header “will fit” or not and then hides the ones it “thinks” won’t.

You’ll see this on the demo site. On load a few links overflow/bump it the site title and the properly disappear once the script executes.

In your case the text is short enough it doesn’t appear to overflow, but it is a few pixels over where it hits your site title. By the time you scroll down it’s hidden the overflowing link and put it behind the hamburger menu toggle.

@mmistakes
Copy link
Owner

Related: lukejacksonn/GreedyNav#18

Seems to only happen in mobile.

@mmistakes
Copy link
Owner

I updated to the latest version of GreedyNav.js, doesn't seem as pronounced on the demo site.
As you are using remote_theme you can just rebuild your site and it'll pull the latest version. Other than that don't think there is much more I can do.

There will be a few seconds where the nav elements will appear/disappear due to how JavaScript loads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants