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

Standardize smooth scrolling behaviour #2

Open
arthanzel opened this issue Jul 3, 2013 · 0 comments
Open

Standardize smooth scrolling behaviour #2

arthanzel opened this issue Jul 3, 2013 · 0 comments

Comments

@arthanzel
Copy link
Contributor

Some browsers like Firefox smooth-scroll by default. Other browsers (ahem, Chrome) scroll immediately by lines. This "choppy" behaviour makes the page look ugly with the parallax scrolling as one layer scrolls smoothly and the other doesn't. The solution is to somehow implement full-page smooth scrolling from the beginning.

However, different browsers implement scrolling behaviours differently:

  • Safari on mac doesn't treat trackpad scrolling as a mousewheel event.
  • Chrome and FF on mac do, but fire LOTS of events for a small scroll distance

Scrolling behaviour needs to be normalized across browsers while not breaking vertical layout. This should be disable completely on mobile platforms.

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