Answer the question
In order to leave comments, you need to log in
How to make page scroll smoothly like in Mozilla Firefox?
I really like scrolling in mozilla, especially when there are parallax scrolling elements on the site - they look awesome!
In general, I tried to make a script that changes the scrolling of other browsers and that this scrolling was similar to scrolling mozilla.
Here is the code for this script, maybe it will be useful for someone:
if(!(navigator.userAgent.toLowerCase().indexOf('firefox') > -1))
{
$(document).bind( 'mousewheel', function (e){
var nt = $(document.body).scrollTop()-(e.originalEvent.wheelDeltaY);
e.preventDefault();
nt = e.originalEvent.wheelDeltaY;
$('html,body').stop(true, false).animate( {
scrollTop : '+='+(-nt)
} ,50 ,'linear');
});
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question