javascript - Scroll movement not working in Safari -


i use below javascript scrolling, doesn't work in safari.

i remove below code working in safari, not working smoothly.

link here

jquery(".scrollbg a").click(function(event){             event.preventdefault();             var window_width = jquery(window).width();             //  alert(window_width);             //jquery('html').animate({scrolltop:jquery(this.hash).offset().top-38+'px'}, 1000);             if(window_width<=375){                 jquery('html').animate({scrolltop:jquery(this.hash).offset().top+60+'px'}, 1000);             }             else if(window_width<=500){                 jquery('html').animate({scrolltop:jquery(this.hash).offset().top+60+'px'}, 1000);             }             else {                 jquery('html').animate({scrolltop:jquery(this.hash).offset().top-38+'px'}, 1000);             }     }); 

please, know of working smooth scroll safari?

omg. don't reinvent wheel. should use http://cubiq.org/iscroll-5

it works browser (safari, chrome, safari mobile, chrome mobile, ffox).


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -