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

Newer browser check method a good idea? #19

Open
edencorbin opened this issue Dec 8, 2015 · 0 comments
Open

Newer browser check method a good idea? #19

edencorbin opened this issue Dec 8, 2015 · 0 comments

Comments

@edencorbin
Copy link

Plugin is working fantastic, I thought I would share that the browser check is an obsoleted jQuery function, I got the results I was looking for with the following code. If you find this useful, please feel free to include/update for readme:

$(function () {
  var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
  if (isChrome) {
     $.srSmoothscroll({
       // defaults
       step: 55,
       speed: 400,
       ease: 'swing',
       target: $('body'),
       container: $(window)
     })
  }
});
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