jQuery(document).ready(function($) { MouseSmoothScroll(); }); function MouseSmoothScroll(){ isMac = /(mac)/.exec( window.navigator.userAgent.toLowerCase() ); if( isMac != null && isMac.length ) return false; jQuery.srSmoothscroll({ step: 160, speed: 1000, ease: 'easeInOutSine', target: jQuery('body'), container: jQuery(window) }); }