Skip to content

Newer browser check method a good idea? #19

@edencorbin

Description

@edencorbin

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)
     })
  }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions