Using Jquery, we can stop scrolling using jquery script. Here is jquery script and how to use.
Jquery Script
$('body,html').bind('scroll mousedown wheel DOMMouseScroll mousewheel keyup touchmove', function (e)
{
if (e.which > 0 || e.type == "mousedown" || e.type == "mousewheel" || e.type == "touchmove") {
$("html,body").stop();
}
});
Place the above code in footer after including jquery.min.js
Be the first to post a comment.