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

Main-Nav, and other associated components, doesn't scroll properly on mobile. #101

Open
ghost opened this issue Nov 16, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 16, 2016

When scrolling down the page, the main-nav component slowly eases to the top of the screen on desktop browsers, as well in mobile emulation. But, on an actual mobile device, the main-nav jumps around erratically.

On desktop, window.addEventListener('scroll', function() {}) is called continuously for every pixel scrolled, but mobile devices don't run the listener until the user has actually stopped scrolling completely. The only two ways around this that I've found:

  1. Get rid of the scrolling function, and just make the header and main-nav fixed.
  2. Use animations to mimic scrolling
@osbornm
Copy link
Contributor

osbornm commented Nov 16, 2016

I agree that this behavior is not ideal and we have noticed it before. We are looking at using position: sticky to address this issue in v2.0.0

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

No branches or pull requests

1 participant